summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dave Hello2017-10-13 17:04:00 +0800
committerPeter Dave Hello2017-10-14 00:19:32 +0800
commitf70d2df1be8fd52be97d780c732dff8a2791e5ce (patch)
tree29b44779ec6e443a679242c886c9eb5b4adf6338
parent53c2d0b5ca5901c1d1cad819e2049b16fba18ea8 (diff)
Add jsonlint script to ensure all json files are valid
Diffstat (limited to '')
-rw-r--r--package.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json
index b0f1ae17..4c8dc562 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,8 @@
"main": "app.js",
"license": "MIT",
"scripts": {
- "test": "npm run-script standard",
+ "test": "npm run-script standard && npm run-script jsonlint",
+ "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' | while read json; do echo $json ; jsonlint -q $json; done",
"standard": "node ./node_modules/standard/bin/cmd.js",
"dev": "webpack --config webpack.config.js --progress --colors --watch",
"build": "webpack --config webpack.production.js --progress --colors --bail",
@@ -159,6 +160,7 @@
"html-webpack-plugin": "^2.25.0",
"imports-loader": "^0.7.0",
"json-loader": "^0.5.4",
+ "jsonlint": "^1.6.2",
"less": "^2.7.1",
"less-loader": "^2.2.3",
"optimize-css-assets-webpack-plugin": "^1.3.0",