Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.48 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.48 KB

undertaker-task-metadata

NPM version Downloads Build Status Coveralls Status

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