burnchart/Makefile

29 lines
629 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:
2013-12-31 17:56:49 +00:00
watch --color -n 1 grunt
2013-10-17 13:32:46 +00:00
2013-12-31 17:19:07 +00:00
publish: 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:
2014-01-01 13:30:32 +00:00
./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --timeout 20000 --slow 15000 --bail
2013-11-05 12:44:15 +00:00
2013-10-17 13:32:46 +00:00
.PHONY: build test