CI & Commit Hook Improvements (#411)
* Add tscheck command, add more stuff to prepush and precommit hooks, clean up travis output. * Move tscheck to prepush, remove running tests entirely. * Put tslint on prepush as well.
This commit is contained in:
parent
5d3e461301
commit
31963b334c
|
@ -7,6 +7,8 @@ before_install:
|
|||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
|
||||
install:
|
||||
- npm install --silent
|
||||
|
||||
notifications:
|
||||
email:
|
||||
|
@ -16,4 +18,4 @@ notifications:
|
|||
script:
|
||||
- npm run test
|
||||
- npm run tslint
|
||||
- tsc --noEmit
|
||||
- npm run tscheck
|
||||
|
|
|
@ -123,9 +123,11 @@
|
|||
"predev:https": "check-node-version --package",
|
||||
"derivation-checker": "webpack --config=./webpack_config/webpack.derivation-checker.js && node ./dist/derivation-checker.js",
|
||||
"tslint": "tslint --project . --exclude common/vendor/**/*",
|
||||
"tscheck": "tsc --noEmit",
|
||||
"postinstall": "webpack --config=./webpack_config/webpack.dll.js",
|
||||
"start": "npm run dev",
|
||||
"precommit": "lint-staged"
|
||||
"precommit": "lint-staged",
|
||||
"prepush": "npm run tslint && npm run tscheck"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx}": [
|
||||
|
|
Loading…
Reference in New Issue