-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathMakefile
55 lines (40 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
COMPONENT = ./node_modules/.bin/component
KARMA = ./node_modules/karma/bin/karma
JSHINT = ./node_modules/.bin/jshint
MOCHA = ./node_modules/.bin/mocha-phantomjs
BUMP = ./node_modules/.bin/bump
MINIFY = ./node_modules/.bin/minify
BFC = ./node_modules/.bin/bfc
build: components $(find lib/*.js)
@${COMPONENT} build --dev
prod:
@${COMPONENT} build
components: node_modules component.json
@${COMPONENT} install --dev
clean:
rm -fr build components dist
node_modules:
npm install
minify: build
${MINIFY} build/build.js build/build.min.js
karma: build
${KARMA} start test/karma.conf.js --no-auto-watch --single-run
lint: node_modules
${JSHINT} lib/*.js
test: lint build
${MOCHA} /test/runner.html
standalone:
@${COMPONENT} build --standalone ripple
@-rm -r dist
@-mkdir dist
@${BFC} build/build.js > dist/ripple.js
ci: test
patch:
${BUMP} patch
minor:
${BUMP} minor
release: test
VERSION=`node -p "require('./component.json').version"` && \
git changelog --tag $$VERSION && \
git release $$VERSION
.PHONY: clean test karma patch release prod