Last active
August 29, 2015 14:02
-
-
Save richorama/4eb771f15fbdf8d7d3d7 to your computer and use it in GitHub Desktop.
My makefile for browserify and uglify
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
all: clean lint test build | |
clean: | |
rm -f *.min.js | |
lint: clean | |
jshint --config jshintconfig.json $(filter-out $(wildcard *.min.js), $(wildcard *.js)) | |
test: | |
mocha | |
build: | |
browserify index.js | uglifyjs > index.min.js | |
browserify adminclient.js | uglifyjs > adminclient.min.js | |
setup: | |
npm install | |
npm install jshint mocha uglifyjs browserify -g | |
run: clean lint test build | |
node server | |
debug: clean | |
browserify index.js > index.min.js | |
node server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment