An open API service indexing awesome lists of open source software.

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.

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