]>
Commit | Line | Data |
---|---|---|
06a3d686 BB |
1 | __jsdoc=node_modules/jsdoc/jsdoc |
2 | __plato=node_modules/plato/bin/plato | |
3 | __mocha=node_modules/.bin/mocha | |
4 | __jshint=node_modules/jshint/bin/jshint | |
5 | ||
6 | __prog=minify.json.js | |
7 | ||
8 | all: jshint test | |
9 | ||
10 | release: init jshint test-doc jsdoc report | |
11 | ||
12 | init: | |
13 | mkdir -p report | |
14 | mkdir -p docs | |
15 | ||
16 | jshint: | |
17 | $(__jshint) --config .jshintrc $(__prog) | |
18 | ||
19 | test: | |
20 | $(__mocha) -r should test/test-*.js | |
21 | ||
22 | test-doc: | |
23 | $(__mocha) -r should test/test-*.js -R doc 2>&1 > TestDoc.html | |
24 | ||
25 | jsdoc: | |
26 | $(__jsdoc) -c .jsdoc3.json -d docs -p -r -l $(__prog) | |
27 | ||
28 | report: | |
29 | $(__plato) -d ./report -r $(__prog) | |
30 | ||
31 | ||
32 | .PHONY: all jshint test jsdoc report |