AbstractResolver

@ui5/project.ui5Framework. AbstractResolver

Abstract Resolver

Constructor

(abstract) new AbstractResolver(options)

Source:
Parameters:
Name Type Description
options * options
Properties
Name Type Attributes Default Description
version string Framework 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()`

Methods

(async) install(libraryNames) → {module:@ui5/project.ui5Framework.ResolverInstallResult}

Source:
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