I have a few tasks in gulp and all of them except one could be run in parallel. Let's consider an example:
var gulp = require('gulp');
gulp.task('clean', function() {
// clean up output folder
});
gulp.task('copy1', function() {
// writes stream in the output folder
});
gulp.task('copy2', function() {
// writes stream in the output folder
});
gulp.task('default', ['clean', 'copy1', 'copy2']);
In this example I need to run copy1
and copy2
in parallel but only after clean
. How can I do this trick?