change: validate config in precommit and in CI

This commit is contained in:
Ruben Taelman 2020-09-01 10:52:45 +02:00 committed by Joachim Van Herwegen
parent 2c3ae4eded
commit a1e9410365
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ node_js:
script: script:
- npm run build - npm run build
- npm run lint - npm run lint
- npm run validate
- npm run test - npm run test
after_success: after_success:
- npm run coveralls - npm run coveralls

View File

@ -24,11 +24,12 @@
"prepare": "npm run build", "prepare": "npm run build",
"start": "node ./bin/server.js -p 3000", "start": "node ./bin/server.js -p 3000",
"test": "jest", "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" "watch": "nodemon --watch \"src/**/*.js\" --watch \"bin/**/*.js\" --exec npm start"
}, },
"husky": { "husky": {
"hooks": { "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": [ "files": [