mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
change: validate config in precommit and in CI
This commit is contained in:
parent
2c3ae4eded
commit
a1e9410365
@ -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
|
||||||
|
@ -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": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user