apeman-task
'task' command module for apeman.
Installation
Install module via npm.
# Install as local module.
$ npm install apeman-task --save
Usage
- Prepare an
Apemanfile.js
- Run the command.
Apemanfile.js
/**
* This is an example Apemanfile.js
*/
"use strict";
module.exports = {
$pkg: {/*...*/},
$tasks: {
"build": [
"build/mkdir"
],
"build/mkdir": {
$invoke: "apeman-task-contrib-mkdir",
$args: [
"src",
"src/stylesheets"
]
}
}
};
Run the command.
/**
* This an example for apeman task command.
*/
var task = require('apeman-task');
task.run('build', {
configuration: 'my-project/Apemanfile.js'
}, function (err) {
});
Options
Key | Description | Default |
---|---|---|
verbose | Show verbose logs | false |
configuration | Pathname of Apemanfile |
CLI
apeman-task also provides CLI(command line interface).
# Install as global module for CLI usage.
$ npm install apeman-task --g
Then,
# Show help for CLI.
$ apeman-task -h
License
This software is released under the MIT License.