Constructor
new Sapui5Resolver(options)
- Source:
Parameters:
Name |
Type |
Description |
options |
*
|
options
Properties
Name |
Type |
Attributes |
Default |
Description |
version |
string
|
|
|
SAPUI5 version to use |
cwd |
string
|
<optional>
|
process.cwd()
|
Working directory to resolve configurations like .npmrc |
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()` |
|
Extends
Methods
- Source:
- Overrides:
Installs the provided libraries and their dependencies
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
-
module:@ui5/project.ui5Framework.ResolverInstallResult