Skip to content
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 watch and async tasks #376

Closed
ctalkington opened this issue Aug 23, 2012 · 2 comments
Closed

grunt watch and async tasks #376

ctalkington opened this issue Aug 23, 2012 · 2 comments

Comments

@ctalkington
Copy link
Member

@cowboy we have a less task that is async but it basically kills watch when an error is ran into. we will likely just add an if to call done() after error so it can continue through. however it brings up the question, in the normal flow of grunt (ie direct commands vs watch) do you really want it to continue through?

if i recall watch has logic to catch warnings that are fired. its also my belief that the fail.warn would auto stop the code during the normal flow so maybe its a non-issue? just looking for some guidance of how you think grunt should work with watch and async.

@emilingerslev
Copy link

Not completly sure about the error/warning part, but I have also found out that watch and this.async() does not go well together. When all async's are done the watch process stops. I can't imagine that's correct behavior?

@tkellen
Copy link
Member

tkellen commented Oct 15, 2012

We have a new watch task, which you can get by adding grunt-contrib-watch to your project deps and doing grunt.loadNpmTasks('grunt-contrib-watch') in your gruntfile. It should resolve this issue. If by chance it doesn't, can you please open the issue over on the watch task?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants