-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
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']);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels