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

ConstructorModifiersDescription
(constructor)(config)(BETA) Constructor of Builder Class

Properties

PropertyModifiersTypeDescription
asyncUtilsAsyncUtils(BETA) Async utils, which will help running promises in series
buildNamestring(BETA) Name of the current build process
CONSTANTS

readonly

static

typeof CONSTANTS(BETA) Constants associated with this Builder.
flowsArray<Flow>(BETA) Flows to run as part of the current build process
type

readonly

static

string(BETA) Type of this Builder.

Methods

MethodModifiersDescription
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