Gulp 4: gulp.single or at least hide <series/parallel> with single task
See original GitHub issueI have a default
task, and I want it to invoke the watch
task when run. watch
is in a separate file, so I can’t just reference the same function (assuming I had declared it separately).
The obvious answer would be to use gulp.series
or gulp.parallel
, but this is a bit strange, as it’s only a single task, and you end up with:
[21:42:37] +-- default
[21:42:37] +-- <parallel>
[21:42:37] +-- watch
Would you consider one of these options?
- Add the ability to do something like:
gulp.task("default", gulp.single("watch"))
. - At least hide
<series/parallel>
when it’s only a single task.
This is actually another issue that could be solved using dependencies (gulp.task("default", ["watch"])
– same as Gulp 3).
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:15 (7 by maintainers)
Top Results From Across the Web
02 - Introduction to Gulp.js series and parallel tasks - Gulp 4
Gulpjs series where I go over the basic content:⦾ intro ⦾ gulp tasks ( series & parallel )⦾ compiling SCSS⦾ cleaning/minifying CSS⦾ ...
Read more >How to run Gulp tasks sequentially one after the other
By default, gulp runs tasks simultaneously, unless they have explicit dependencies. This isn't very useful for tasks like clean , where you don't...
Read more >series() - gulp.js
series ()#. Combines task functions and/or composed operations into larger operations that will be executed one after another, in sequential order.
Read more >Moving from gulp 3 to 4 | Web Development - UConn Blogs
Task Functions · Start with the source files passed to gulp. · Capture and log any errors produced by the files (like when...
Read more >Getting Started with Gulp.js - Semaphore Tutorial
What makes Gulp different from other task runners is that it uses Node streams; piping output from one task as an input to...
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
We aren’t going to add an API just to reduce noise in this scenario and showing the series or parallel will allow for better traceability in complex compositions.
@jaydenseric possibly. Please open a new issue and give reproduction steps (gulpfile, etc).