Skip to content

Commit fa14f47

Browse files
committed
replace Makefile with npm build scripts
1 parent f1c48ce commit fa14f47

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

Makefile

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
"uglify-js": "^3.10.0"
3737
},
3838
"scripts": {
39+
"build": "npm run build:jison && npm run build:mv && npm run build:web && npm run build:webmin",
40+
"build:jison": "jison src/jsonlint.y src/jsonlint.l",
41+
"build:mv": "node -e require('fs').renameSync('jsonlint.js','lib/jsonlint-ext.js')",
42+
"build:web": "node scripts/bundle.js > web/jsonlint-ext.js",
43+
"build:webmin": "node scripts/bundle.js | uglifyjs > web/jsonlint-ext.min.js",
3944
"test": "node test/all-tests.js"
4045
},
4146
"optionalDependencies": {}

0 commit comments

Comments
 (0)