JS tooling: run TS grunt tasks only when files changed

- using grunt-newer to prefix precommit tasks
- only got it to work for tslint and tsc

Not applied to:

- sasslint does not take the file arguments in a way that grunt-newer
  recognizes
- no-only-tests throws an error when used with `newer`, but it's
  sub-second runtime
This commit is contained in:
David Kaltschmidt
2018-10-30 10:25:53 +01:00
parent a0aaf70060
commit e8a895d58b
4 changed files with 19 additions and 4 deletions
+8
View File
@@ -5971,6 +5971,14 @@ grunt-legacy-util@~1.0.0:
underscore.string "~3.2.3"
which "~1.2.1"
grunt-newer@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/grunt-newer/-/grunt-newer-1.3.0.tgz#83ccb7a1dda7cbd8ab23b059024ebe614ad2f342"
integrity sha1-g8y3od2ny9irI7BZAk6+YUrS80I=
dependencies:
async "^1.5.2"
rimraf "^2.5.2"
grunt-notify@^0.4.5:
version "0.4.5"
resolved "https://registry.yarnpkg.com/grunt-notify/-/grunt-notify-0.4.5.tgz#05293990616110db6bc0ad15e6c0592ffe18ac31"