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
{{ message }}
Repository navigation
gulp.trigger(taskName) should be a through stream #32
@robrich that can be dangerous though. Plugins should be relatively stateless. If plugins were able to get into the task system I feel like that would lead to grunt where plugins are responsible for creating their own tasks in the system and you're supposed to just assume the names
The only question in my mind about this is the behavior. Should it fire for every file that passes through or should it wait until the entire upstream is done before firing then pass everything through? Flag to toggle each behavior?
I see the point. If plugins can reach into the main system, things could quickly get out of hand.
I think it should trigger on stream end as you can't pass the filename into the other task, and if you wanted to you should pipe into a plugin in the current task instead.
Activity
robrich commentedon Dec 2, 2013
If plugins could get a reference to the gulp engine, this would make a cool plugin.
yocontra commentedon Dec 4, 2013
@robrich that can be dangerous though. Plugins should be relatively stateless. If plugins were able to get into the task system I feel like that would lead to grunt where plugins are responsible for creating their own tasks in the system and you're supposed to just assume the names
yocontra commentedon Dec 4, 2013
The only question in my mind about this is the behavior. Should it fire for every file that passes through or should it wait until the entire upstream is done before firing then pass everything through? Flag to toggle each behavior?
robrich commentedon Dec 4, 2013
I see the point. If plugins can reach into the main system, things could quickly get out of hand.
I think it should trigger on stream end as you can't pass the filename into the other task, and if you wanted to you should pipe into a plugin in the current task instead.
yocontra commentedon Dec 20, 2013
Closing this - I don't think it is a good idea (otherwise I would have implemented it by now)
If anyone has arguments for/against it I'm still open to discussion
dashed commentedon Dec 27, 2013
An alternative is to execute the reload task within the run callback, since it is executed once all tasks are finished: