You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
489 B
25 lines
489 B
BASE = .
|
|
|
|
ISTANBUL = ./node_modules/.bin/istanbul
|
|
COVERAGE_OPTS = --lines 99 --statements 95 --branches 90 --functions 95
|
|
|
|
main: lint test
|
|
|
|
cover:
|
|
$(ISTANBUL) cover test/run.js
|
|
|
|
check-coverage:
|
|
$(ISTANBUL) check-coverage $(COVERAGE_OPTS)
|
|
|
|
test: cover check-coverage
|
|
|
|
|
|
test-cov: cover check-coverage
|
|
open coverage/lcov-report/index.html
|
|
|
|
lint:
|
|
./node_modules/.bin/jshint ./lib --config $(BASE)/.jshintrc && \
|
|
./node_modules/.bin/jshint ./test --config $(BASE)/.jshintrc
|
|
|
|
|
|
.PHONY: test
|
|
|