Merge pull request #735 from SISheogorath/fix/jsonlint

Use jq instead of jsonlint
This commit is contained in:
Christoph (Sheogorath) Kern 2018-02-19 20:00:59 +01:00 committed by GitHub
commit 6bcc72e090
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -32,7 +32,10 @@ jobs:
- diff -q README.md README.md.orig - diff -q README.md README.md.orig
language: generic language: generic
- env: task=json-lint - env: task=json-lint
install: npm install jsonlint addons:
apt:
packages:
- jq
script: script:
- npm run jsonlint - npm run jsonlint
language: generic language: generic

View file

@ -6,7 +6,7 @@
"license": "AGPL-3.0", "license": "AGPL-3.0",
"scripts": { "scripts": {
"test": "npm run-script standard && npm run-script jsonlint", "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", "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' | while read json; do echo $json ; jq . $json; done",
"standard": "node ./node_modules/standard/bin/cmd.js", "standard": "node ./node_modules/standard/bin/cmd.js",
"dev": "webpack --config webpack.config.js --progress --colors --watch", "dev": "webpack --config webpack.config.js --progress --colors --watch",
"build": "webpack --config webpack.production.js --progress --colors --bail", "build": "webpack --config webpack.production.js --progress --colors --bail",