UNPKG

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