base-methods plugin that provides a very thin wrapper around <https://github.com/jonschlinkert/composer> for adding task methods to your application.
$ cnpm install base-tasks
base-methods plugin that provides a very thin wrapper around https://github.com/jonschlinkert/composer for adding task methods to your application.
Install with npm:
$ npm i base-tasks --save
var Base = require('base-methods');
var tasks = require('base-tasks');
Base.use(tasks());
var base = new Base();
base.task('foo', function(cb) {
console.log('this is foo!');
cb();
});
base.task('bar', function(cb) {
console.log('this is bar!');
cb();
});
base.build(['foo', 'bar'], function(err) {
// this is foo!
// this is bar!
console.log('done!');
});
v0.3.0
.watch method is no longer included by default. To add .watch, use the base-watch plugin.You might also be interested in these projects:
base application. | homepageoption, enable and disable. See the readme… more | homepageInstall dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 29, 2016.
Copyright 2013 - present © cnpmjs.org | Home |