burnchart/Makefile

28 lines
566 B
Makefile
Raw Normal View History

2014-10-27 02:57:44 +00:00
# Install dependencies.
2014-08-29 02:55:45 +00:00
install:
npm install
bower install
2014-10-27 02:57:44 +00:00
# Build the app for production.
build-app:
2014-10-27 02:57:44 +00:00
./node_modules/.bin/browserify -e ./src/app.coffee -o public/js/app.js
2014-10-27 02:57:44 +00:00
# Watch the app sources and build with source maps.
watch-app:
2014-10-27 02:57:44 +00:00
./node_modules/.bin/watchify -e ./src/app.coffee -o public/js/app.js -d -v
2014-10-27 02:57:44 +00:00
# Build vendor libs and styles.
2014-10-25 02:59:53 +00:00
build-vendor:
2014-08-29 02:55:45 +00:00
grunt
2014-10-27 02:57:44 +00:00
# Serve locally.
2014-08-29 02:55:45 +00:00
serve:
cd public; python -m SimpleHTTPServer 8000
2014-10-27 02:57:44 +00:00
# Make and publish a minified package.
publish:
grunt init
make build-app
make build-vendor
grunt minify
2014-10-25 02:59:53 +00:00
firebase deploy