From 31963b334c79181b743a1fc03214abcf271afc6c Mon Sep 17 00:00:00 2001 From: William O'Beirne Date: Wed, 29 Nov 2017 15:20:24 -0800 Subject: [PATCH] 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. --- .travis.yml | 4 +++- package.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e0c9554a..2d64e8d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/package.json b/package.json index 7d9ac89e..5f64fa4b 100644 --- a/package.json +++ b/package.json @@ -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}": [