Gulp 4: gulp.task('default', 'build') should be same as gulp.task('default', gulp.series('build'))
See original GitHub issueLoving the new gulp.series()
and gulp.parallel()
flow, but I feel it shouldn’t be necessary to type:
gulp.task('default', gulp.series('build'))
When the following would communicate the intent even more clearly, and is less code:
gulp.task('default', 'build')
The latter currently fails with AssertionError: Task function must be specified
.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:8
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Creating Tasks | gulp.js
Tasks can be considered public or private. ... To register a task publicly, export it from your gulpfile. ... exports.default = series(clean, build);....
Read more >A quick guide for switching to gulp 4 | by Jhey Tompkins
Let's consider a real use case. A common default task is something like develop . This may have once looked like gulp.task('develop', [' ......
Read more >The new task execution system - gulp.parallel and gulp.series
First clean, then scripts and styles in parallel, and after that we can execute the default task function. There are however several problems ......
Read more >Everytime I run gulp anything, I get a assertion error.
Starts a BrowerSync instance gulp.task('server', ['build'], ... You don't need to downgrade your gulp from gulp 4. Use gulp.series() to ...
Read more >How to use the gulp.parallel function in gulp - Snyk
task ('default', gulp.series( 'test', 'build', 'watch' ));. Was this helpful ...
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
another alternative would be to disallow all this and just do:
as it is now, i just ignore
gulp.task
as well as the possibility of referring to tasks by name:instead i use
export function release() { ... }
to define tasks and always pass the functions directly