Skip to content

@ui5/builder/processors/jsdoc/apiIndexGenerator

Methods

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

Description: Compiles API index resources from all api.json resources available in the given test resources directory as created by the sdkTransformer processor. The resulting index resources (e.g. api-index.json, api-index-deprecated.json, api-index-experimental.json and api-index-since.json) are mainly to be used in the SDK.

Source: builder/lib/processors/jsdoc/apiIndexGenerator.js, line 9

Parameters:
NameTypeDescription
parametersobjectParameters
Properties:
NameTypeDescription
versionInfoPathstringPath to sap-ui-version.json resource
testResourcesRootPathstringPath to /test-resources root directory in the
given fs
targetApiIndexPathstringPath to create the generated API index JSON resource for
targetApiIndexDeprecatedPathstringPath to create the generated API index "deprecated" JSON
resource for
targetApiIndexExperimentalPathstringPath to create the generated API index "experimental" JSON
resource for
targetApiIndexSincePathstringPath to create the generated API index "since" JSON resource for
fsfs | module:@ui5/fs/fsInterfaceNode fs or
custom fs interface to use
Returns:

Promise resolving with created resources api-index.json, api-index-deprecated.json, api-index-experimental.json and api-index-since.json (names depend on the supplied paths)

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