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'm not sure if the title makes any sense, but I'll do my best to explain.
I've got a gulp task that loops through some folders and runs some processes against all the files in each folder. These get added together with merge-stream. Once each folder has been processed and merged back together in to one stream, I then want to emit a notification to indicate that the task ran and completed. However, it seems that nothing after return MERGED_STREAMS is firing.
returnMERGED_STREAMS// prevent breaking on error.pipe(plugins.plumber({errorHandler: on_error,}))// notify that task is complete, if not part of default or watch.pipe(plugins.gulpif(gulp.seq.indexOf("scripts")>gulp.seq.indexOf("default"),plugins.notify({title: "Success!",message: "Scripts task complete!",onLast: true,})))// push task to ran_tasks array.on("data",()=>{if(ran_tasks.indexOf("scripts")<0){ran_tasks.push("scripts");}}).on("end",()=>{console.log("reached the end");// never happensreturnresolve();});
Any idea what could be causing this? I'm at a complete loss.
The text was updated successfully, but these errors were encountered:
So that stuff is to handle different notifications; I notify for each individual task, but combine them in to one notification when gulp or gulp watch is ran. Never had any issues with that in the past, still working well today.
I'm going to go ahead and close this issue, I think the problem was that a promise was returning too early and breaking things.
I'm not sure if the title makes any sense, but I'll do my best to explain.
I've got a gulp task that loops through some folders and runs some processes against all the files in each folder. These get added together with merge-stream. Once each folder has been processed and merged back together in to one stream, I then want to emit a notification to indicate that the task ran and completed. However, it seems that nothing after
return MERGED_STREAMS
is firing.My full scripts task can be found on my new-site repository, but this is the relevant bit:
Any idea what could be causing this? I'm at a complete loss.
The text was updated successfully, but these errors were encountered: