Home > @momentum-design/builder > AssetsBuilder
AssetsBuilder class
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The Assets Builder class.
Contains initialising and processing functions and makes use of several utilities, like AsyncUtils
.
Signature:
declare class Builder extends CoreBuilder
Extends: CoreBuilder
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(config) | (BETA) Constructor of Builder Class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
asyncUtils | AsyncUtils | (BETA) Async utils, which will help running promises in series | |
buildName | string | (BETA) Name of the current build process | |
CONSTANTS |
| typeof CONSTANTS | (BETA) Constants associated with this Builder. |
flows | Array<Flow> | (BETA) Flows to run as part of the current build process | |
type |
| string | (BETA) Type of this Builder. |
Methods
Method | Modifiers | Description |
---|---|---|
final() | (BETA) Run after the build process step | |
initialize() | (BETA) Initialize method, which will run first | |
process() | (BETA) Process method, which will run after initialize. This contains transformations and will write the transformed data to dist | |
runFlowSteps(flow) | (BETA) Run the flow steps after each other | |
verifyConfig() | (BETA) Verifies the config |