Reputation: 13800
As part of my build process, I need to run a gulp build on a submodule from another project. I know I can use "require('path/to/other/gulpfile.js')", but it doesn't seem like gulp does anything to handle task name collisions. Both gulpfiles have a "build" task.
Is there a way to rename an already-defined gulp task at runtime?
Upvotes: 2
Views: 1314
Reputation: 5643
You may simply want to use a shell command to call gulp in a separate process. You can use gulp-shell to do that
gulp.task('main-task', shell.task([
'gulp submodule-task'
], {
cwd: './path/to/submodule'
}))
Upvotes: 2