Undertaker custom registry supporting forward referenced tasks.
Last updated 3 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install undertaker-forward-reference 
SYNC missed versions from official npm registry.


NPM version Downloads Build Status AppVeyor Build Status Coveralls Status Gitter chat

Undertaker custom registry supporting forward referenced tasks.


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.


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



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



Current Tags

  • 1.0.2                                ...           latest (3 years ago)

4 Versions

  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (2)
Today 1
This Week 3
This Month 41
Last Day 2
Last Week 19
Last Month 74
Dependencies (1)
Dev Dependencies (8)

Copyright 2014 - 2017 © taobao.org |