1 | validate: lint test
|
2 |
|
3 | lint:
|
4 | @./node_modules/.bin/jshint \
|
5 | --verbose \
|
6 | index.js \
|
7 | lib/*.js
|
8 |
|
9 | test:
|
10 | @./node_modules/.bin/mocha \
|
11 | --require should \
|
12 | --reporter spec
|
13 |
|
14 | test-cov: lib-cov
|
15 | @CP_COV=1 ./node_modules/.bin/mocha \
|
16 | --require should \
|
17 | --reporter html-cov > coverage.html
|
18 |
|
19 | lib-cov:
|
20 | @jscoverage lib lib-cov
|
21 |
|
22 | .PHONY: test lint test-cov validate
|