Skip to content

Instantly share code, notes, and snippets.

@weiland
Created June 18, 2014 13:32
Show Gist options
  • Save weiland/16419539aa6f65e827b4 to your computer and use it in GitHub Desktop.
Save weiland/16419539aa6f65e827b4 to your computer and use it in GitHub Desktop.
Gulp run tasks after each other.
// there were people suggesting using async or event-stream
// this is the way easier solution to run a taks after another taks is done
gulp.task('compileAssets', function() {
return gulp.src('assets/*').pipe(compile()); // the return is essential!
});
// compileAssets is a dependency
gulp.task('serve', ['compileAssets'], function() {
return gulp.src('app/**/*.js').pipe(startWebserver());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment