Skip to content

Instantly share code, notes, and snippets.

@gjohnson
Created December 4, 2013 19:20
Show Gist options
  • Save gjohnson/7793763 to your computer and use it in GitHub Desktop.
Save gjohnson/7793763 to your computer and use it in GitHub Desktop.
REPORTER = spec
BASE = .
default: install
install: node_modules
node_modules: package.json
@npm -s install
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--require "should" \
--reporter $(REPORTER) \
--growl \
--check-leaks \
--recursive
lint:
@./node_modules/.bin/jshint index.js lib \
--reporter ./node_modules/jshint-stylish/stylish.js \
--config $(BASE)/.jshintrc
clean:
@rm -rf node_modules
.PHONY: default install test lint clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment