22 lines
333 B
Makefile
22 lines
333 B
Makefile
MOCHA_CMD = node_modules/mocha/bin/_mocha
|
|
|
|
export NODE_ENV = test
|
|
|
|
.PHONY: clean test test-cov test-travis publish
|
|
|
|
clean:
|
|
rm -rf coverage templates.json
|
|
|
|
test:
|
|
$(MOCHA_CMD)
|
|
|
|
test-cov:
|
|
make clean
|
|
node node_modules/istanbul/lib/cli.js cover $(MOCHA_CMD) --
|
|
|
|
publish:
|
|
make clean
|
|
node bin/cache-templates
|
|
npm publish
|
|
make clean
|