1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
| all: build test site
|
| build:
| ./node_modules/jison/lib/cli.js src/jsonlint.y src/jsonlint.l
| mv jsonlint.js lib/jsonlint.js
| node scripts/bundle.js | ./node_modules/uglify-js/bin/uglifyjs > web/jsonlint.js
|
| site:
| cp web/jsonlint.js ../jsonlint-pages/jsonlint.js
|
| deploy: site
| cd ../jsonlint-pages && git commit -a -m 'deploy site updates' && git push origin gh-pages
|
| test: lib/jsonlint.js test/all-tests.js
| node test/all-tests.js
|
|