Recipe (gulp 4): using gulp-hub as a custom registry for loading multiple gulpfiles
See original GitHub issuegulp-hub
has been great at working with me to implement itself as a custom registry in support of gulp4. I really would like a recipe showing how to load multiple gulpfiles with gulp-hub as the registry.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Gulp 4 Split Tasks Across Multiple Files Using Gulp-Hub ...
The 4.0 branch doesn't work right now because it fails the registry validation of undertaker . The registry-init branch seems to work however....
Read more >How to use the gulp.registry function in gulp
To help you get started, we've selected a few gulp.registry examples, ... Tell gulp to use the tasks just loaded gulp.registry(hub); gulp.task('build', ...
Read more >docs/recipes/split-tasks-across-multiple-files.md - gulp
If your gulpfile.js is starting to grow too large, you can split the tasks into separate files by using the gulp-hub module as...
Read more >Creating Tasks
Private tasks are made to be used internally, usually used as part of series() or parallel() ... To register a task publicly, export...
Read more >Gulp-hub
gulp-hub v4.2.0 ... gulp-hub. Gulp extension to run tasks from multiple gulpfiles. ... tell gulp to use the tasks just loaded */ gulp.registry(hub);....
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
@phated Just tried a stripped down example explicitly ordering the tasks passed to gulp-hub, but
build
still doesn’t recognize theclean
task as ever being defined (despite loading before it):Even if it did work, manually declaring each filename and their order in the array passed to gulp-hub is a bit meticulous. I don’t see this as a problem with gulp-hub specifically (it does what it claims to), but rather gulp-hub as a replacement to the previous require-dir recipe for splitting tasks across multiple files.
Let me know if I should open a separate issue here - not sure if I’m doing something wrong but I’m happy to help update this recipe once sorted.
It’s not meeting the functional requirements. Should only have to specify the task directory and have those tasks accessible from that point forward. Current implementation breaks down when it comes to nesting, at which point you’d be once again specifying each set of task dependencies for each file. Issue being that these dependencies are already clearly defined in the tasks themselves and using
gulp-hub
as it stands would result in double-handling with these being defined multiple times.