https://github.com/gulpjs/undertaker-task-metadata
Proof-of-concept custom registry that attaches metadata to each task.
https://github.com/gulpjs/undertaker-task-metadata
Last synced: 8 months ago
JSON representation
Proof-of-concept custom registry that attaches metadata to each task.
- Host: GitHub
- URL: https://github.com/gulpjs/undertaker-task-metadata
- Owner: gulpjs
- License: mit
- Created: 2015-01-15T04:03:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T02:33:13.000Z (about 3 years ago)
- Last Synced: 2024-10-29T15:14:43.722Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# undertaker-task-metadata
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
Proof-of-concept custom registry that attaches metadata to each task.
## Example
```js
var gulp = require('gulp');
var TaskMetadata = require('undertaker-task-metadata');
gulp.registry(new TaskMetadata());
gulp.task('default', function (cb) {
// this.name === 'default'
cb();
});
```
## API
### TaskMetadataRegistry
Constructor for the registry. Pass an instance of this registry to `gulp.registry`.
## License
MIT
[downloads-image]: https://img.shields.io/npm/dm/undertaker-task-metadata.svg?style=flat-square
[npm-url]: https://npmjs.org/package/undertaker-task-metadata
[npm-image]: https://img.shields.io/npm/v/undertaker-task-metadata.svg?style=flat-square
[ci-url]: https://github.com/gulpjs/undertaker-task-metadata/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/undertaker-task-metadata/dev.yml?branch=master&style=flat-square
[coveralls-url]: https://coveralls.io/r/gulpjs/undertaker-task-metadata
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/undertaker-task-metadata.svg?style=flat-square