-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grunt-tslint runs again all the files with newer #67
Comments
@mvidailhet could you publish a repository that I could clone to reproduce this problem? Or a gist with enough files to easily get things set up. |
Hi @tschaub, I'm so sorry, but I actually meant grunt-tslint and not grunt-ts. For the 2 issues you linked, seems that the answer lies in the "fast" option of grunt-ts. The fast options actually allows to recompile only changed files (like grunt-newer does). If you specify a "out" directory in grunt-ts with the fast option set to "watch" (default), it always runs against all the files saying: "Fast compile will not work when --out is specified. Ignoring fast compilation". If you do the same with the fast option set to "never" (default) and use newer, it will output this message: I've made a repository showing the problem with the out directory here: https://github.com/mvidailhet/grunt-ts-newer But if you don't specify a "out" directory, "newer" or the fast compile from grunt-ts both only run against changed file as expected. Hope that helped. |
For the jslint part, I found the problem. grunt-newer doesn't write cache files if there are errors (logic). |
Thanks for the extra detail @mvidailhet. So it sounds like we can close this as invalid regarding If you could leave any comments for |
My grunt-ts config:
If I run newer:tslint:all in my watch task, it still runs again all the ts files.
The text was updated successfully, but these errors were encountered: