JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13019
  • Score
    100M100P100Q129296F

Run a series of gulp tasks in order.

Package Exports

  • gulp-sequence

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-sequence) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-sequence v0.1.0 Build Status

Run a series of gulp tasks in order.

Install

Install with npm

npm install --save-dev gulp-sequence

Example

var gulp = require('gulp'),
  gulpSequence = require('gulp-sequence');

gulp.task('a', function (cb) {
  //... cb()
});

gulp.task('b', function (cb) {
  //... cb()
});

gulp.task('c', function (cb) {
  //... cb()
});

gulp.task('d', function (cb) {
  //... cb()
});

gulp.task('e', function (cb) {
  //... cb()
});

// model 1, recommend
// 1. run 'a', 'b' in parallel;
// 2. run 'c' when 'a' and 'b' finished;
// 3. run 'd', 'e' in parallel after 'c'.
gulp.task('sequence-1', gulpSequence(['a', 'b'], 'c', ['d', 'e']));

// model 2
gulp.task('sequence-2', function (cb) {
  gulpSequence(['a', 'b'], 'c', ['d', 'e'], cb);
});

// model 3
gulp.task('sequence-3', function (cb) {
  gulpSequence(['a', 'b'], 'c', ['d', 'e'])(cb);
});

gulp.task('gulp-sequence', gulpSequence('sequence-1', 'sequence-2', 'sequence-3'));

API

var gulpSequence = require('gulp-sequence');

gulpSequence('subtask1', 'subtask2',...[, callback])

License

MIT © Teambition