Run a series of gulp tasks in order
Run a series of gulp tasks in order.
Install with npm
npm install --save-dev gulp-sequence…with gulp.watch:
gulp.watch('src/**/*.js', function (event) {
gulpSequence('a', 'b')(function (err) {
if (err) console.log(err)
})
})var gulpSequence = require('gulp-sequence')return a thunk function.
var gulp = require('gulp')
var gulpSequence = require('gulp-sequence')
gulp.task('test', gulpSequence(['a', 'b'], 'c', ['d', 'e'], 'f'))return a new gulpSequence function with the gulp. If you have some errors such as "task xxx is not defined", this will resolve it.
var gulp = require('gulp')
var gulpSequence = require('gulp-sequence').use(gulp)
gulp.task('test', gulpSequence(['a', 'b'], 'c', ['d', 'e'], 'f'))MIT © Teambition
No open issues yet, or sync has not completed.