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:
William O'Beirne 2017-11-29 15:20:24 -08:00 committed by Daniel Ternyak
parent 5d3e461301
commit 31963b334c
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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}": [