undertaker-forward-reference

2.0.0 • Public • Published

undertaker-forward-reference

NPM version Downloads Build Status Coveralls Status

Undertaker custom registry supporting forward referenced tasks.

Why?

The focus of gulp 4.0 is to make the 90% use case extremely easy, but we don't want to completely unsupport the 10% use cases. We have noticed patterns people use and things they want to do (and have worked around), like serial execution. However, I believe forward referenced tasks (as defined in https://github.com/gulpjs/gulp/issues/802) are an edge case that is better handled with other patterns (coming soon: links to better patterns). If you must use forward referenced tasks, you can set this as a custom registry before registering any tasks.

Usage

var gulp = require('gulp');
var FwdRef = require('undertaker-forward-reference');

gulp.registry(FwdRef()); // or gulp.registry(new FwdRef());

gulp.task('default', gulp.series('forward-ref'));

gulp.task('forward-ref', function (cb) {
  // do task things
  cb();
});

API

ForwardReferenceRegistry()

Constructor for the registry. Pass an instance of this registry to gulp.registry.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    988
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    988
  • 1.0.2
    11,449
  • 1.0.1
    0
  • 1.0.0
    0
  • 0.1.0
    1,184

Package Sidebar

Install

npm i undertaker-forward-reference

Weekly Downloads

13,621

Version

2.0.0

License

MIT

Unpacked Size

5.3 kB

Total Files

4

Last publish

Collaborators

  • yocontra
  • phated