undertaker-task-metadata
v2.0.0
Published
Proof-of-concept custom registry that attaches metadata to each task
Downloads
172
Readme
undertaker-task-metadata
Proof-of-concept custom registry that attaches metadata to each task.
Example
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