XpmBuildConfigurations class
A collection of xpm build configurations.
Signature
export declare class XpmBuildConfigurations
Remarks
This class manages build configurations defined in package metadata, including template expansion with matrix parameters and initialisation of derived configuration instances.
Configuration lifecycle phases:
- Construction: Basic setup without processing configurations.
- Initialisation: Template name expansion without content evaluation.
- Retrieval: On-demand instantiation when accessed via
get(). - Configuration Initialisation: Full processing including inheritance, property resolution, dependency substitution, and action preparation.
This lazy evaluation strategy ensures that only configurations actually used incur the cost of template evaluation, inheritance resolution, and variable substitution.
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
(constructor)({ log, engine, substitutionsVariables, jsonBuildConfigurations, }) |
Constructs a build configurations collection. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
Set<string> |
Set of all build configuration names for duplicate detection. | |
|
|
Map<string, XpmBuildConfiguration | undefined> |
Map of build configuration names to their corresponding instances. | |
|
|
string[] |
Cached array of all build configuration names in the collection. | |
|
|
boolean |
Flag indicating whether the collection has been initialised. | |
|
|
Map<string, string> |
Map of expanded build configuration names to their JSON source names. | |
|
|
The Liquid templating engine for variable substitution. | ||
|
|
boolean |
Indicates whether the collection is empty. | |
|
|
The JSON object containing build configuration definitions. | ||
|
|
Logger |
The logger instance for output and diagnostics. | |
|
|
string[] |
The names of all build configurations. | |
|
|
number |
The number of build configurations in the collection. | |
|
|
The variables available for substitution in configuration definitions. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Creates a substituted build configuration from a template combination. | |
|
_expandTemplateBuildConfigurations({ buildConfigurationName, jsonBuildConfigurationTemplate, }) |
|
Expands a template build configuration into multiple configurations. |
|
_processTemplate({ buildConfigurationName, jsonBuildConfigurationTemplate, }) |
|
Processes a template build configuration by expanding it and registering the generated configurations. |
|
Retrieves a build configuration by name, creating it if required. | ||
|
Retrieves the JSON build configuration definition. | ||
|
Retrieves the JSON configuration name for a build configuration. | ||
|
Determines whether a build configuration exists in the collection. | ||
|
Determines whether a JSON definition exists for a build configuration. | ||
|
Completes the async initialisation of the build configurations collection. | ||
|
Determines whether a build configuration is hidden. |
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.