frankwallis / gulp-hub

Gulp plugin to run tasks in multiple gulpfiles
MIT License
89 stars 24 forks source link

Replace `run-sequence` with gulp task deps? #9

Closed robatron closed 10 years ago

robatron commented 10 years ago

Can we replace runSequence with a task dependency array where hub adds the default task?

E.g.,

// create the master task which will run all the subtasks in sequence
gulp.task(task.name, function() {
    runSequence.apply(null, args);
});

would become

gulp.task(task.name, args);

so we could do things like add support for a 'done' callback, e.g.,

gulp.task(task.name, args, doneCallback);

What do you think? Is there anything run-sequence does that gulp's task dependency array doesn't?

frankwallis commented 10 years ago

runSequence runs each of the tasks in turn (synchronously), with a dependency array gulp would run all the dependencies at the same time

if we were able to configure dependencies between gulpfiles (when one compilation depends on another one having completed) then it would be possible to run gulpfiles in parallel.