Created
December 12, 2014 00:05
-
-
Save peterlozano/740070f36f9d9cb4cc60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH := ./node_modules/.bin:$(PATH) | |
build: prebuild scripts styles markup | |
clean: | |
rimraf dist/* | |
prebuild: clean | |
scripts: | |
browserify assets/scripts/main.js | hashmark -n dist/main.js -s -l 8 -m assets.json 'dist/{name}{hash}{ext}' | |
styles: | |
stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css 'dist/{name}{hash}{ext}' | |
markup: | |
jade assets/markup/index.jade --obj assets.json -o dist | |
test: | |
karma start --singleRun | |
watch: | |
parallelshell 'make watch-test' 'make watch-build' | |
watch-test: | |
karma start | |
watch-build: | |
nodemon -q -w assets/ --ext '.' --exec 'make build' | |
open-prod: | |
opener http://example.com | |
open-stage: | |
opener http://staging.example.internal | |
open-dev: | |
opener http://localhost:9090 | |
serve: | |
http-server -p 9090 dist/ | |
live-reload: | |
live-reload --port 9091 dist/ | |
dev: | |
open:dev -s & parallelshell 'make live-reload' 'make serve' 'make watch' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment