1
Fork 0

Validate JSON data

This commit is contained in:
Jake Howard 2016-03-15 22:23:44 +00:00
parent 9dbd4da58f
commit 508b1817d9
2 changed files with 11 additions and 1 deletions

View file

@ -13,7 +13,7 @@
"watch-less": "watch 'npm run build-less' static/src/less/", "watch-less": "watch 'npm run build-less' static/src/less/",
"watch": "npm run watch-less", "watch": "npm run watch-less",
"clean": "./scripts/clean.js", "clean": "./scripts/clean.js",
"test": "npm run lint" "test": "npm run lint && ./scripts/test-extras.sh"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -38,6 +38,7 @@
"eslint": "=1.5.0", "eslint": "=1.5.0",
"eslint-config": "git://github.com/dabapps/eslint-config.git", "eslint-config": "git://github.com/dabapps/eslint-config.git",
"eslint-plugin-react": "=3.4.2", "eslint-plugin-react": "=3.4.2",
"jsonlint": "=1.6.2",
"less": "=2.5.1", "less": "=2.5.1",
"less-mixins": "git://github.com/RealOrangeOne/less-mixins.git", "less-mixins": "git://github.com/RealOrangeOne/less-mixins.git",
"postcss-cli": "=2.5.1", "postcss-cli": "=2.5.1",

9
scripts/test-extras.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
echo ">> Linting JSON Data..."
jsonlint -q data/projects.json
echo "> Extra tests passed!"