Created
June 18, 2014 13:32
-
-
Save weiland/16419539aa6f65e827b4 to your computer and use it in GitHub Desktop.
Gulp run tasks after each other.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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