Skip to content

@ui5/builder/processors/versionInfoGenerator

Methods

(static) default(parameters) → {Promise<Array<@ui5/fs/Resource>>}

Description: Creates sap-ui-version.json.

Source: builder/lib/processors/versionInfoGenerator.js, line 356

Parameters:
NameTypeDescription
parametersobjectParameters
Properties:
NameTypeDescription
optionsobjectOptions
Properties
NameTypeDescription
rootProjectNamestringName of the root project
rootProjectVersionstringVersion of the root project
libraryInfosArray<module:@ui5/builder/processors/versionInfoGenerator~LibraryInfo>Array of
objects representing libraries,
e.g.
on
{
name: "lib.x",
version: "1.0.0",
libraryManifest: @ui5/fs/Resource,
embeddedManifests: @ui5/fs/Resource[]
}
Returns:

Promise resolving with an array containing the versionInfo resource

Type: Promise<Array<@ui5/fs/Resource>>

Type Definitions

LibraryInfo

Description: Library Info

contains information about the name and the version of the library and its manifest, as well as the nested manifests.

Source: builder/lib/processors/versionInfoGenerator.js, line 341

Properties:
NameTypeDescription
namestringThe library name, e.g. "lib.x"
versionstringThe library version, e.g. "1.0.0"
libraryManifest@ui5/fs/Resourcelibrary manifest resource,
e.g. resource with path "lib/x/manifest.json"
embeddedManifestsArray<@ui5/fs/Resource>list of embedded manifest resources,
e.g. resource with path "lib/x/sub/manifest.json"

Library Info

contains information about the name and the version of the library and its manifest, as well as the nested manifests.

Type:
  • object