Skip to content

Instantly share code, notes, and snippets.

@richorama
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richorama/4eb771f15fbdf8d7d3d7 to your computer and use it in GitHub Desktop.
Save richorama/4eb771f15fbdf8d7d3d7 to your computer and use it in GitHub Desktop.
My makefile for browserify and uglify
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