Skip to content

Commit

Permalink
Merge pull request #1338 from erikkemperman/feature-tweak-docs
Browse files Browse the repository at this point in the history
Align API.md with undertaker docs
  • Loading branch information
phated committed Oct 21, 2015
2 parents 1ab1d2a + a74b1d1 commit a271520
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ To build your own custom registry see the [undertaker documentation on custom re

#### registry

A registry instance or constructor. When passed in, the tasks from the current registry will be transferred to the new registry and then current registry will be replaced with the new registry.
A registry instance. When passed in, the tasks from the current registry will be transferred to the new registry and then current registry will be replaced with the new registry.

#### Example

Expand Down Expand Up @@ -736,16 +736,18 @@ var DefaultRegistry = require('undertaker-registry');

function MyCompanyTasksRegistry() {
DefaultRegistry.call(this);
}
util.inherits(MyCompanyTasksRegistry, DefaultRegistry);

this.set('clean', function(done) {
MyCompanyTasksRegistry.prototype.init = function(gulp) {
gulp.task('clean', function(done) {
done();
});
this.set('someCompanyTask', function(done) {
gulp.task('someCompanyTask', function(done) {
console.log('performing some company task.');
done();
});
}
util.inherits(MyCompanyTasksRegistry, DefaultRegistry);
};

module.exports = new MyCompanyTasksRegistry();
```
Expand Down

0 comments on commit a271520

Please sign in to comment.