Validate JSON data
This commit is contained in:
parent
9dbd4da58f
commit
508b1817d9
2 changed files with 11 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
"watch-less": "watch 'npm run build-less' static/src/less/",
|
||||
"watch": "npm run watch-less",
|
||||
"clean": "./scripts/clean.js",
|
||||
"test": "npm run lint"
|
||||
"test": "npm run lint && ./scripts/test-extras.sh"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -38,6 +38,7 @@
|
|||
"eslint": "=1.5.0",
|
||||
"eslint-config": "git://github.com/dabapps/eslint-config.git",
|
||||
"eslint-plugin-react": "=3.4.2",
|
||||
"jsonlint": "=1.6.2",
|
||||
"less": "=2.5.1",
|
||||
"less-mixins": "git://github.com/RealOrangeOne/less-mixins.git",
|
||||
"postcss-cli": "=2.5.1",
|
||||
|
|
9
scripts/test-extras.sh
Executable file
9
scripts/test-extras.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo ">> Linting JSON Data..."
|
||||
jsonlint -q data/projects.json
|
||||
|
||||
|
||||
echo "> Extra tests passed!"
|
Reference in a new issue