Hi,
I am aware of this method: https://github.com/gulpjs/gulp/blob/master/docs/recipes/running-tasks-in-series.md
Though I don't find it elegant. It requires me to write dummy tasks just for the sake of having them run in series:
gulp.task('clean', function() {
return gulp.src('public', {read: false})
.pipe(rimraf());
});
gulp.task('copy', function() {
return gulp.src('app/assets/**')
.pipe(gulp.dest('public'));
});
gulp.task('copy-clean', ['clean']);
gulp.task('stylus', function() {
return gulp.src('app/styles/*.styl')
.pipe(stylus({use: ['nib']}))
.pipe(gulp.dest('public/css'));
});
gulp.task('stylus-clean', ['copy-clean']);
gulp.task('dev', ['clean', 'copy-clean', 'stylus-clean']);
Why don't you let us decide wether the dependency array is to be run in series or parallel? It could be an options hash, or even some character before the task:
gulp.task('dev', ['clean', 'copy-clean', 'stylus-clean']);
Hi,
I am aware of this method: https://github.com/gulpjs/gulp/blob/master/docs/recipes/running-tasks-in-series.md
Though I don't find it elegant. It requires me to write dummy tasks just for the sake of having them run in series:
Why don't you let us decide wether the dependency array is to be run in series or parallel? It could be an options hash, or even some character before the task: