Build

new Build(targetsnon-null)

Parameters:
NameTypeDescription
targetsArray.<string>

The targets to build.

Throws:

If not running in dev mode.

Type
Error

Methods

go() → (non-null) {Promise}

Executes the build.

Throws:

If no targets were specified.

Type
Error
Returns:

A promise that will be resolved when the build has completed.

Type: 
Promise

onlyOnce() → (non-null) {Build}

Configures this build to only execute if it has not previously been run during the life of the current process.

Returns:

A self reference.

Type: 
Build