cylon-chip
Version:
Cylon.js adaptor for the C.H.I.P. single-board computer
32 lines (21 loc) • 732 B
Plain Text
BIN := ./node_modules/.bin
LIB := index.js $(shell find lib spec/lib -type f -name "*.js")
SPEC := spec/helper.js $(shell find spec/lib -type f -name "*.js")
VERSION := $(shell node -e "console.log(require('./package.json').version)")
default: lint test
test:
@$(BIN)/mocha --colors -R dot $(SPEC)
bdd:
@$(BIN)/mocha --colors -R spec $(SPEC)
cover:
@istanbul cover $(BIN)/_mocha $(SPEC) --report lcovonly -- -R spec
lint:
@$(BIN)/eslint index.js lib spec examples
ci: lint cover
release: lint test
@git push origin master
@git checkout release ; git merge master ; git push ; git checkout master
@git tag -m "$(VERSION)" v$(VERSION)
@git push --tags
@npm publish ./