You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot get spawn: false to actually work in the current version of grunt-contrib-watch. When a watched file changes, the current watch task will end, and then a new watch will begin immediately. The tasks that I wanted to run never run.
Simplest example I can reliably demonstrate is to have a watch run grunt-eslint, or grunt-karma, on a js file.
I have found that if I insert grunt.task.clearQueue() before grunt.task.run(self.tasks) (taskrun.js#L65) the tasks will execute as expected.
I am wondering if there are any caveats to this potential fix that I may be missing. Should I go ahead and open a PR?
The text was updated successfully, but these errors were encountered:
Lalem001
changed the title
spawn: false doesn't work
"spawn: false" doesn't work
Oct 8, 2018
I cannot get
spawn: false
to actually work in the current version ofgrunt-contrib-watch
. When a watched file changes, the currentwatch
task will end, and then a newwatch
will begin immediately. The tasks that I wanted to run never run.Simplest example I can reliably demonstrate is to have a watch run
grunt-eslint
, orgrunt-karma
, on a js file.I have found that if I insert
grunt.task.clearQueue()
beforegrunt.task.run(self.tasks)
(taskrun.js#L65) the tasks will execute as expected.I am wondering if there are any caveats to this potential fix that I may be missing. Should I go ahead and open a PR?
The text was updated successfully, but these errors were encountered: