# undertaker-forward-reference

> Undertaker custom registry supporting forward referenced tasks.

Latest version **2.0.0** (published 2022-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install undertaker-forward-reference
pnpm add undertaker-forward-reference
yarn add undertaker-forward-reference
bun add undertaker-forward-reference
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-06-28 |
| First published | 2015-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.13.0 |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Gulp Team |
| Maintainers | yocontra, phated |
| Keywords | forward reference, custom registry, registry, tasks, undertaker, gulp |

## Links

- npm: https://www.npmjs.com/package/undertaker-forward-reference
- Repository: https://github.com/gulpjs/undertaker-forward-reference
- Homepage: https://github.com/gulpjs/undertaker-forward-reference#readme
- Issues: https://github.com/gulpjs/undertaker-forward-reference/issues
- npm.io page: https://npm.io/package/undertaker-forward-reference

## Dependencies (1)

- [undertaker-registry](https://npm.io/package/undertaker-registry.md) ^2.0.0

## Recent versions

- 2.0.0 (latest) — 2022-06-28
- 1.0.2 — 2017-10-02
- 1.0.1 — 2015-12-21
- 1.0.0 — 2015-11-17
- 0.1.0 — 2015-07-26

## README

<p align="center">
  <a href="http://gulpjs.com">
    <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
  </a>
</p>

# undertaker-forward-reference

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

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

```js
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

<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/undertaker-forward-reference.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/undertaker-forward-reference
[npm-image]: https://img.shields.io/npm/v/undertaker-forward-reference.svg?style=flat-square

[ci-url]: https://github.com/gulpjs/undertaker-forward-reference/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/undertaker-forward-reference/dev?style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/undertaker-forward-reference
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/undertaker-forward-reference/master.svg?style=flat-square
<!-- prettier-ignore-end -->

---
_Source: https://npm.io/package/undertaker-forward-reference · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
