SHELL := /bin/bash
BIN = ./node_modules/.bin
NPM = $(NPM_PATH)
NODE = $(NODE_PATH)

coverage: clean-coverage
	node --harmony $(BIN)/istanbul  cover $(BIN)/_mocha

unit-test:
	$(BIN)/mocha | tee test.tap

clean-coverage:
	-rm -rf coverage

install-test-modules:
	npm install --save-dev

install-prod-modules:
	npm install --save

set-registry:
	npm set registry https://sinopia.oxseed.com

clean-modules:
	-rm -rf node_modules

version-increment:
	npm version patch

publish:
	npm publish