Constructor
new @ui5/project/ui5Framework/Sapui5MavenSnapshotResolver(options)
- Source:
Parameters:
Name |
Type |
Description |
options |
*
|
options
Properties
Name |
Type |
Attributes |
Default |
Description |
snapshotEndpointUrl |
string
|
<optional>
|
|
Maven Repository Snapshot URL. Can by overruled
by setting the UI5_MAVEN_SNAPSHOT_ENDPOINT_URL environment variable. If neither is provided,
falling back to the standard Maven settings.xml file (if existing). |
version |
string
|
|
|
SAPUI5 version to use |
sources |
boolean
|
<optional>
|
false
|
Whether to install framework libraries as sources or
pre-built (with build manifest) |
cwd |
string
|
<optional>
|
process.cwd()
|
Current working directory |
ui5HomeDir |
string
|
<optional>
|
"~/.ui5"
|
UI5 home directory location. This will be used to store packages,
metadata and configuration used by the resolvers. Relative to `process.cwd()` |
cacheMode |
module:@ui5/project/ui5Framework/maven/CacheMode
|
<optional>
|
Default
|
Cache mode to use |
|
Extends
Methods
- Description:
- Installs the provided libraries and their dependencies
- Source:
- Overrides:
Example
const resolver = new Sapui5Resolver({version: "1.76.0"});
// Or for OpenUI5:
// const resolver = new Openui5Resolver({version: "1.76.0"});
resolver.install(["sap.ui.core", "sap.m"]).then(({libraryMetadata}) => {
// Installation done
}).catch((err) => {
// Handle installation errors
});
Parameters:
Name |
Type |
Description |
libraryNames |
Array.<string>
|
List of library names to be installed |
Returns:
Resolves with an object containing the libraryMetadata
-
Type
-
@ui5/project/ui5Framework/AbstractResolver~ResolverInstallResult