Makefile
ISTANBUL = ./node_modules/.bin/istanbul
ESLINT = ./node_modules/.bin/eslint
MOCHA = ./node_modules/.bin/mocha
all: lint test coverage
# Tests
test:
@$(ISTANBUL) cover --report lcov --report text --report html _mocha
# Check code style
lint:
@$(ESLINT) 'lib/**/*.js' 'test/**/*.js'
# Check coverage levels
coverage:
@$(ISTANBUL) check-coverage --statement 95 --branch 95 --function 95
# Clean up
clean: clean-cov
clean-cov:
@rm -rf coverage
.PHONY: all test lint coverage clean clean-cov