Suggested alternative to gulp.series and gulp.parallel
See original GitHub issueI think that the following syntax would be much cleaner and much more intuitive way of running tasks in series or in parallel. It makes the composition of tasks much more fluid, with less boilerplate
gulp.task('default',
['parallel1', 'parallel2'],
'series1',
'series2',
['parallel3', 'parallel4'],
function () {
//do some work here after all dependencies have been run
}
);
Here is how it would process:
- run parallel1 and parallel2 in parallel
- Run series1
- Run series2
- Run parallel3 and parallel4 in parallel.
- run the function now that all required tasks have been run.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
The new task execution system - gulp.parallel and gulp.series
In this article, I want to show you what's new and how you can migrate the best. Task execution chains in Gulp 3...
Read more >Is there any other way to write the Watch function in Gulp, I ...
gulp.task("compress ", gulp.series("clean", function () {. series and parallel do not take an array as an argument.
Read more >Construct Gulp Series Tasks Dynamically - Medium
In this article, I just share a simple solution to construct gulp series/parallel tasks dynamically. However, you can still improve it more like ......
Read more >Moving from gulp 3 to 4 | Web Development - UConn Blogs
As part of the boilerplates, we typically use gulp js. Gulp is a javascript task runner. That means it lets you automate common...
Read more >Webpack or Browserify & Gulp: Which Is Better? - Toptal
In this article, Toptal Freelance Software Engineer Eric Grosse shows us how various combinations of the popular tools Webpack, Browserify, Gulp and Npm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, you could do this yourself with a 1 line module
Again, no. This goes into userland.