Compile TS of the whole project to detect type errors

- was not covered by TS lint
- TS errors are only noticed in broken builds
- added grunt task to run `tsc --noEmit`
This commit is contained in:
David Kaltschmidt
2018-09-27 15:15:41 +02:00
parent 31b8bf2d47
commit 88f36cbd22
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
module.exports = function(config, grunt) {
module.exports = function (config, grunt) {
'use strict';
return {
tslint: 'node ./node_modules/tslint/lib/tslintCli.js -c tslint.json --project ./tsconfig.json',
tsc: 'yarn tsc --noEmit',
jest: 'node ./node_modules/jest-cli/bin/jest.js --maxWorkers 2',
webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js',
};