Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

undertaker-forward-reference

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

undertaker-forward-reference

Undertaker custom registry supporting forward referenced tasks.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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

Keywords

FAQs

Package last updated on 28 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc