-
Notifications
You must be signed in to change notification settings - Fork 356
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
How to detect interruption in a plugin #361
Comments
basically if I call Workaround: // If grunt-contrib-watch is the current task do not call done
if (grunt.task.current && grunt.task.current.name == 'watch') {
return;
} |
Not ideal. I need some way of knowing if someone called : https://github.com/gruntjs/grunt/blob/155609c39928d530f13d8e4581a27455be995792/lib/util/task.js#L201 on my behalf |
If you need to know when a process exits then you'll need to spawn processes. |
The following don't get called with option
spawn:false
:The text was updated successfully, but these errors were encountered: