Add script to validate universe json [ci skip]

This commit is contained in:
Ines Montani 2018-11-06 12:50:41 +01:00
parent a9fda638a9
commit 11db4d2f27
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@
"harp": "^0.24.0", "harp": "^0.24.0",
"rollup": "^0.50.0", "rollup": "^0.50.0",
"uglify-js": "^2.7.3", "uglify-js": "^2.7.3",
"broken-link-checker": "^0.7.6" "broken-link-checker": "^0.7.6",
"valid-json-cli": "^1.3.0"
}, },
"dependencies": {}, "dependencies": {},
"scripts": { "scripts": {
@ -20,6 +21,7 @@
"babel": "babel www/assets/js/main.js --out-file www/assets/js/main.js --presets=es2015", "babel": "babel www/assets/js/main.js --out-file www/assets/js/main.js --presets=es2015",
"uglify": "uglifyjs www/assets/js/main.js --output www/assets/js/main.js", "uglify": "uglifyjs www/assets/js/main.js --output www/assets/js/main.js",
"validate": "validjson universe/universe.json",
"compile": "NODE_ENV=deploy harp compile", "compile": "NODE_ENV=deploy harp compile",
"bundle": "npm run rollup && npm run babel && npm run uglify", "bundle": "npm run rollup && npm run babel && npm run uglify",
"deploy": "rsync -P --compress --recursive --checksum --delete --exclude=\".*\" --exclude=\"*.vue.js\" --exclude=\"README.html\" --exclude \"package.json\" --exclude \"www\" www/ $1" "deploy": "rsync -P --compress --recursive --checksum --delete --exclude=\".*\" --exclude=\"*.vue.js\" --exclude=\"README.html\" --exclude \"package.json\" --exclude \"www\" www/ $1"