justinhelmer
2/13/2016 - 5:14 AM

pipelines.js

// before
function pipeline(options) {
  return gulpApi.src('*.whatever')
      .pipe(pages({force: options.force}));
}

// after
function pipeline(options) {
  return lazypipe()
      .pipe(tasks.util.filter('pages.whatever', '*.whatever'))
      .pipe(pages, {force: options.force})
      .pipe(tasks.util.filter.restore('pages.whatever'));
}