apeman-watch
'watch' command module for apeman.
Installation
Install module via npm.
# Install as local module.
$ npm install apeman-watch --save
Usage
- Prepare an
Apemanfile.js
- 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.