frankwallis / gulp-hub

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

Correctly pass through callback parameter of task function to subtasks #10

Closed simonihmig closed 9 years ago

simonihmig commented 9 years ago

Given a sub task expecting a callback function to signal task completion such as:

gulp.task('foo-bar', function(cb) {
    doSomethingAsynchronous(cb);
});

This works when gulp is called form the subfolder, but when called from gulp-hub this will fail as the callback function cb is always undefined. This PR fixes it, passing through the callback function from its task definitions.

frankwallis commented 9 years ago

looks good, thanks