Bob

Bob

new Bob(opts:)

Constructor for initialising Bob.
Source:
Parameters:
Name Type Description
opts: Object optional - appDir: directory where the userland application calls Bob from - bobDir: directory where Bob's installation is located - appName: name of the userland application (retrieved from its package.json) - appVersion: version value of the userland application (retrieved from its package.json) - bobMode: either `human` or `robot`, when you are a robot - you have to declare yourself :-] - quiet: when true, only display task name and command, but without the command output

Methods

_commands(taskNames:, settings:, cb:)

Prepare commands to execute.
Source:
Parameters:
Name Type Description
taskNames: Array an array of task names
settings: Object tasks and application configs
cb: function standard cb(err, result) callback

_init(taskNames:, cb:)

Load Bob task files and application config file, and install optional dependencies, all in parallel.
Source:
Parameters:
Name Type Description
taskNames: Array an array of task names
cb: function standard cb(err, result) callback

build(taskNames:, cb:)

Bob is goin' to work! Execute specified tasks
Source:
Parameters:
Name Type Description
taskNames: Array an array of task names
cb: function standard cb(err, result) callback