Skip to content

@ui5/project/ui5Framework/Openui5Resolver

@ui5/project/ui5Framework/Openui5Resolver

Resolver for the OpenUI5 framework

Constructor

new @ui5/project/ui5Framework/Openui5Resolver(options)

Source: project/lib/ui5Framework/Openui5Resolver.js, line 16

Parameters:
NameTypeDescription
options*options
Properties:
NameTypeAttributesDefaultDescription
versionstringOpenUI5 version to use
cwdstringoptionalprocess.cwd()Working directory to resolve configurations like .npmrc
ui5DataDirstringoptional"~/.ui5"UI5 home directory location. This will be used to store packages,
metadata and configuration used by the resolvers. Relative to process.cwd()
cacheDirstringoptionalWhere to store temp/cached packages.
packagesDirstringoptionalWhere to install packages
stagingDirstringoptionalThe staging directory for the packages

Extends

Methods

Description: Installs the provided libraries and their dependencies

js
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
});

Source: project/lib/ui5Framework/AbstractResolver.js, line 193

Overrides: @ui5/project/ui5Framework/AbstractResolver#install

Parameters:
NameTypeDescription
libraryNamesArray<string>List of library names to be installed
Returns:

Resolves with an object containing the libraryMetadata

Type: @ui5/project/ui5Framework/AbstractResolver~ResolverInstallResult