OverZealous / run-sequence

Run a series of dependent gulp tasks in order
MIT License
961 stars 56 forks source link

The Readme says "return the promise from del" but run-sequence doesn't actually support promises #80

Closed luxalpa closed 8 years ago

luxalpa commented 8 years ago

EDIT: Now it works. I must have made some weird mistake. Sorry. Disregard/delete this.

using something like this:

gulp.task('clean', () => {
    return del(["www/**/*", "www-release/**/*"]);
});

gulp.task('rebuild', function() {
    runSequence("clean", "build");
});

doesn't actually work, because it doesn't wait for del (promise) to be done before starting the build task. It does work using del.sync though, but then again, that doesn't require run-sequence.