{"id":14982072,"url":"https://github.com/gulpjs/undertaker-forward-reference","last_synced_at":"2025-10-19T11:31:19.957Z","repository":{"id":35421441,"uuid":"39686441","full_name":"gulpjs/undertaker-forward-reference","owner":"gulpjs","description":"Undertaker custom registry supporting forward referenced tasks.","archived":false,"fork":false,"pushed_at":"2023-05-23T02:32:36.000Z","size":18,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T15:14:43.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gulpjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["gulpjs","phated","yocontra"],"tidelift":"npm/gulp","open_collective":"gulpjs"}},"created_at":"2015-07-25T13:29:29.000Z","updated_at":"2024-09-28T22:42:42.000Z","dependencies_parsed_at":"2022-09-14T20:52:29.241Z","dependency_job_id":"817cba77-00a8-465b-b6ee-2fa43e2030af","html_url":"https://github.com/gulpjs/undertaker-forward-reference","commit_stats":{"total_commits":16,"total_committers":6,"mean_commits":"2.6666666666666665","dds":0.3125,"last_synced_commit":"e19b8fed44808ccfc35ea514c5b4f84f15194fd6"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fundertaker-forward-reference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fundertaker-forward-reference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fundertaker-forward-reference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fundertaker-forward-reference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gulpjs","download_url":"https://codeload.github.com/gulpjs/undertaker-forward-reference/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237116959,"owners_count":19258333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T14:04:44.331Z","updated_at":"2025-10-19T11:31:19.562Z","avatar_url":"https://github.com/gulpjs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/gulpjs","https://github.com/sponsors/phated","https://github.com/sponsors/yocontra","https://tidelift.com/funding/github/npm/gulp","https://opencollective.com/gulpjs"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://gulpjs.com\"\u003e\n    \u003cimg height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# undertaker-forward-reference\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nUndertaker custom registry supporting forward referenced tasks.\n\n## Why?\n\nThe focus of gulp 4.0 is to make the 90% use case extremely easy, but we don't want to\ncompletely unsupport the 10% use cases. We have noticed patterns people use and things\nthey want to do (and have worked around), like serial execution. However, I believe\nforward referenced tasks (as defined in https://github.com/gulpjs/gulp/issues/802) are\nan edge case that is better handled with other patterns (coming soon: links to better\npatterns). If you must use forward referenced tasks, you can set this as a custom\nregistry before registering any tasks.\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar FwdRef = require('undertaker-forward-reference');\n\ngulp.registry(FwdRef()); // or gulp.registry(new FwdRef());\n\ngulp.task('default', gulp.series('forward-ref'));\n\ngulp.task('forward-ref', function (cb) {\n  // do task things\n  cb();\n});\n```\n\n## API\n\n### `ForwardReferenceRegistry()`\n\nConstructor for the registry. Pass an instance of this registry to `gulp.registry`.\n\n## License\n\nMIT\n\n\u003c!-- prettier-ignore-start --\u003e\n[downloads-image]: https://img.shields.io/npm/dm/undertaker-forward-reference.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/undertaker-forward-reference\n[npm-image]: https://img.shields.io/npm/v/undertaker-forward-reference.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/undertaker-forward-reference/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/undertaker-forward-reference/dev.yml?branch=master\u0026style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/undertaker-forward-reference\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/undertaker-forward-reference/master.svg?style=flat-square\n\u003c!-- prettier-ignore-end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fundertaker-forward-reference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgulpjs%2Fundertaker-forward-reference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fundertaker-forward-reference/lists"}