-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (30 loc) · 973 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 no
@mv build/build.js no.js
@rm -rf build
@node_modules/.bin/uglifyjs -nc --unsafe -mt -o no.min.js no.js
@echo "File size (minified): " && cat no.min.js | wc -c
@echo "File size (gzipped): " && cat no.min.js | gzip -9f | wc -c
@cp ./no.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/no
docs.deploy: docs
@cd docs && \
git init . && \
git add . && \
git commit -m "Update documentation"; \
git push "https://github.com/wearefractal/no" 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