-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 838 Bytes
/
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
build: components index.js color-picker.css
@component build --dev
components: component.json
@component install --dev
clean:
rm -fr build components template.js dist gh-pages sea-modules src
coverage:
@jscoverage index.js cov.js
@mv index.js bak.js
@mv cov.js index.js
@$(MAKE) build
@mocha-browser test/index.html -R html-cov > coverage.html
@mv bak.js index.js
travis:
@node_modules/.bin/component install --dev
@node_modules/.bin/component build --dev
@node_modules/.bin/mocha-browser test/index.html
spm:
@rm -fr src
@mkdir src
@python .transport.py > src/color-picker.js
@cp color-picker.css src/
@spm build
gh-pages: components
@component build
@rm -fr gh-pages
@mkdir gh-pages
@mv build gh-pages/
@cp index.html gh-pages/
@ghp-import gh-pages -p -n
@rm -fr gh-pages
.PHONY: clean coverage gh-pages