apeman-task

Task runner for apeman.


Keywords
apeman, command, task, automation
License
MIT
Install
npm install apeman-task@7.0.2

Documentation

apeman-task

Build Status Code Climate Code Coverage npm version

'task' command module for apeman.

Installation

Install module via npm.

# Install as local module.
$ npm install apeman-task --save

Usage

  1. Prepare an Apemanfile.js
  2. 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.

Links