-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gulp 4: Build & watch, task naming #1410
Comments
@glen-84 what I've done in my projects is to just call the parent something generic that incapsulates all subtasks.
|
@beenanner Ya, I thought about doing that as well, but it doesn't really solve the root problem (task dependencies). |
@glen-84 is your example the result of a |
@phated Yes. |
We are working on UI for a non-recursive display (although it won't solve you naming 2 different things the same) over in gulpjs/gulp-cli#57 so I'm closing this. |
With Gulp 3, you can do something like this:
This is a total of 2 tasks (functions), and
build
will be run beforewatch
.How do you do the same thing with Gulp 4? If you use
gulp.series
, it looks like this:But that gives this tree:
You can name it
watch
as well, and then you get:... but this almost looks recursive.
Is this the only way to do it? Would you not reintroduce the concept of dependencies?
Same thing with my
serve
task that depends onwatch
.If you had dependencies again, it could be visualized as follows:
It's just a bit weird the way that it is, and I'm unsure of how to name the tasks/functions in these cases.
The text was updated successfully, but these errors were encountered: