Skip to content

Commit

Permalink
Add build step that validates JSON
Browse files Browse the repository at this point in the history
This is to make sure that we do not accidentally merge invalid JSON
  • Loading branch information
guidokessels committed Jan 3, 2019
1 parent 208ef43 commit e3bb836
Show file tree
Hide file tree
Showing 3 changed files with 655 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- "10"
cache:
yarn: true
script:
- yarn run validate:json
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
"author": "Guido Kessels <mail@guidokessels.com>",
"license": "MIT",
"scripts": {
"validate:json": "jsonlint-cli data/**/*.json",
"format": "prettier --print-width 80 --write 'data/**/*.json'",
"changelog": "git log --pretty=format:'- %s (%h)' --no-merges",
"ffg2xws": "node scripts/ffg2xws.js && prettier --print-width 80 --write data/ffg-xws.json"
},
"devDependencies": {
"jsonfile": "^5.0.0",
"jsonlint-cli": "^1.0.1",
"prettier": "^1.14.2"
}
}
Loading

0 comments on commit e3bb836

Please sign in to comment.