apeman-watch

watch command module for apeman.


Keywords
apeman, command, watch
License
MIT
Install
npm install apeman-watch@2.0.1

Documentation

apeman-watch

Build Status Code Climate Code Coverage npm version

'watch' command module for apeman.

Installation

Install module via npm.

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

Usage

  1. Prepare an Apemanfile.js
  2. Run the command.

Apemanfile.js

/**
 * This is an example Apemanfile.js
 */

"use strict";

module.exports = {
    $pkg: {/*...*/},
    $watch: {
        'myWatch01': {
            "pattern": "src/*.js",
            "action": function (evnet, filename) {
                /*...*/
            }
        }
    }
};

Run the command.

/**
 * This an example for apeman watch command.
 */

var watch = require('apeman-watch');

watch('myWatch01', {
}, function (err) {
    /*...*/
});

Options

Key Description Default
verbose Show verbose logs false
configuration Pathname of Apemanfile

CLI

apeman-watch also provides CLI(command line interface).

# Install as global module for CLI usage.
$ npm install apeman-watch --g

Then,

# Show help for CLI.
$ apeman-watch -h

License

This software is released under the MIT License.

Links