Use jq instead of jsonlint

As the jsonlint package from NPM causes problems and looks unmaintained,
it'll be replaced with `jq` a well maintained project which allows to
search through JSON files in a `grep`-like style, but knowing the JSON
structure.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath 2018-02-19 19:01:32 +01:00
parent 298d3d62bb
commit faa839ed3a
No known key found for this signature in database
GPG Key ID: 1F05CC3635CDDFFD
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -6,7 +6,7 @@
"license": "AGPL-3.0",
"scripts": {
"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",
"dev": "webpack --config webpack.config.js --progress --colors --watch",
"build": "webpack --config webpack.production.js --progress --colors --bail",