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
Install with npm:
$ npm i base-tasks --save
Usage
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) {
console.log('done!');
});
Related projects
- base: base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… more | homepage
- base-cli: Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a… more | homepage
- base-options: Adds a few options methods to base-methods, like
option
, enable
and disable
. See the readme… more | homepage - base-plugins: Upgrade's plugin support in base-methods to allow plugins to be called any time after init. | homepage
- base-store: Plugin for getting and persisting config values with your base-methods application. Adds a 'store' object… more | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2016 Jon Schlinkert
Released under the MIT license.
This file was generated by verb on January 19, 2016.