cylon/Makefile

24 lines
520 B
Makefile
Raw Normal View History

2014-02-27 22:44:53 +08:00
BIN := ./node_modules/.bin
TEST_FILES := test/support/env.js $(shell find test/specs -type f -name "*.js")
2014-02-27 22:44:53 +08:00
VERSION := $(shell node -e "console.log(require('./package.json').version)")
2014-05-22 10:35:09 +08:00
.PHONY: cover test bdd lint release
2014-02-27 22:44:53 +08:00
test:
@$(BIN)/mocha --colors $(TEST_FILES)
2014-02-27 22:44:53 +08:00
cover:
@$(BIN)/istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
2014-02-27 22:44:53 +08:00
bdd:
@$(BIN)/mocha --colors -R spec $(TEST_FILES)
2014-02-27 22:44:53 +08:00
lint:
@$(BIN)/jshint ./lib
release:
@git tag -m "$(VERSION)" v$(VERSION)
@git push --tags
@npm publish ./