forked from wearefractal/seedling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 1018 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
build: components lib
@rm -rf dist
@mkdir dist
@node_modules/.bin/coffee -b -o dist -c lib/*.coffee
@node_modules/.bin/component build --standalone APPNAME
@mv build/build.js APPNAME.js
@rm -rf build
@node_modules/.bin/uglifyjs -nc --unsafe -mt -o APPNAME.min.js APPNAME.js
@echo "File size (minified): " && cat APPNAME.min.js | wc -c
@echo "File size (gzipped): " && cat APPNAME.min.js | gzip -9f | wc -c
@cp ./APPNAME.js ./examples/
test: build lib
@node_modules/.bin/mocha --compilers coffee:coffee-script
components: component.json
@node_modules/.bin/component install --dev
docs: lib
@node_modules/.bin/lidoc README.md manual/*.md lib/*.coffee --output docs --github wearefractal/APPNAME
docs.deploy: docs
@cd docs && \
git init . && \
git add . && \
git commit -m "Update documentation"; \
git push "https://github.com/wearefractal/APPNAME" master:gh-pages --force && \
rm -rf .git
clean:
@rm -rf dist
@rm -rf components
@rm -rf build
@rm -rf docs
.PHONY: test docs docs.deploy