Skip to content

Commit

Permalink
change: validate config in precommit and in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks authored and joachimvh committed Sep 1, 2020
1 parent 2c3ae4e commit a1e9410
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ node_js:
script:
- npm run build
- npm run lint
- npm run validate
- npm run test
after_success:
- npm run coveralls
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
"prepare": "npm run build",
"start": "node ./bin/server.js -p 3000",
"test": "jest",
"validate": "componentsjs-compile-config urn:solid-server:default -c config/config-default.json > /dev/null",
"watch": "nodemon --watch \"src/**/*.js\" --watch \"bin/**/*.js\" --exec npm start"
},
"husky": {
"hooks": {
"pre-commit": "npm run build && npm run lint && npm run test"
"pre-commit": "npm run build && npm run lint && npm run validate && npm run test"
}
},
"files": [
Expand Down

0 comments on commit a1e9410

Please sign in to comment.