Class Build
Defined in: build.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Build(targets)
|
Method Attributes | Method Name and Description |
---|---|
go()
Executes the build.
|
|
onlyOnce()
Configures this build to only execute if it has not previously been
run during the life of the current process.
|
Class Detail
Build(targets)
- Parameters:
-
{!Array.
} targets - The targets to build.
- Throws:
- {Error}
- If not running in dev mode.
Method Detail
{!webdriver.promise.Promise}
go()
Executes the build.
- Throws:
- {Error}
- If no targets were specified.
- Returns:
- {!webdriver.promise.Promise} A promise that will be resolved when the build has completed.
{!Build}
onlyOnce()
Configures this build to only execute if it has not previously been
run during the life of the current process.
- Returns:
- {!Build} A self reference.