burnchart/Makefile

31 lines
607 B
Makefile
Raw Normal View History

2013-11-05 12:44:15 +00:00
install:
npm install
bower install
2013-10-17 13:32:46 +00:00
build:
2013-11-05 12:44:15 +00:00
grunt
minify:
grunt minify
watch:
watch --color -n 1 make build
2013-10-17 13:32:46 +00:00
2013-10-16 11:10:53 +00:00
publish:
2013-11-05 12:44:15 +00:00
build
minify
2013-10-16 11:10:53 +00:00
git checkout gh-pages
2013-11-05 12:44:15 +00:00
git show master:build/app.bundle.min.js > app.bundle.min.js
git show master:build/app.bundle.min.css > app.bundle.min.css
2013-10-16 11:10:53 +00:00
git add .
@status=$$(git status --porcelain); \
if ! test "x$${status}" = x; then \
git commit -m 'publish latest build to gh-pages'; \
git push -u origin gh-pages; \
fi
git checkout master
2013-11-05 12:44:15 +00:00
test:
./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --bail
2013-10-17 13:32:46 +00:00
.PHONY: build test