1 | JSFILES=index.js lib/*.js test/*.js test/mocks/*.js
|
2 | TESTFILES=test/*.js
|
3 | ESLINT=node_modules/.bin/eslint
|
4 | MOCHA=node_modules/.bin/mocha
|
5 |
|
6 | all:
|
7 | @make npm
|
8 | @make test
|
9 |
|
10 | npm:
|
11 | @npm install
|
12 |
|
13 | lint:
|
14 | @( $(ESLINT) $(JSFILES) && echo "lint tests passed..." )
|
15 |
|
16 | test:
|
17 | @( [ -d node_modules ] || make npm )
|
18 | @( $(MOCHA) $(TESTFILES) && make lint )
|
19 |
|
20 | integration:
|
21 | @( ./test/integration/run-examples.sh )
|
22 |
|
23 | watch:
|
24 | @( ./watcher.js )
|
25 |
|
26 | .PHONY: npm
|
27 | .PHONY: test
|
28 | .PHONY: jshint
|
29 | .PHONY: watch
|