- Source:
Classes
Methods
(static) buildThemes(parameters) → {Promise.<undefined>}
- Source:
Task to build a library theme.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) createDebugFiles(parameters) → {Promise.<undefined>}
Task to create dbg files.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) escapeNonAsciiCharacters(parameters) → {Promise.<undefined>}
Task to escape non ascii characters in properties files resources.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(async, static) executeJsdocSdkTransformation(parameters) → {Promise.<undefined>}
Task to transform the api.json file as created by the
generateJsdoc task into a pre-processed api.json
file suitable for the SDK.
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateApiIndex(parameters) → {Promise.<undefined>}
Compiles an api-index.json resource from all available api.json resources as created by the
executeJsdocSdkTransformation task.
The resulting api-index.json resource is mainly to be used in the SDK.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateBundle(parameters) → {Promise}
Generates a bundle based on the given bundle definition
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise
(static) generateCachebusterInfo(parameters) → {Promise.<undefined>}
Task to generate the application cachebuster info file.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateComponentPreload(parameters) → {Promise.<undefined>}
Task to for application bundling.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateFlexChangesBundle(parameters) → {Promise.<undefined>}
Task to create changesBundle.json file containing all changes stored in the /changes folder for easier consumption
at runtime.
If a change bundle is created, "sap.ui.fl" is added as a dependency to the manifest.json if not already present -
if the dependency is already listed but lazy-loaded, lazy loading is disabled.
If minUI5Version >= 1.73 flexibility-bundle.json will be create.
If there are control variants and minUI5Version < 1.73 build will break and throw an error.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(async, static) generateJsdoc(parameters) → {Promise.<undefined>}
Task to execute a JSDoc build for UI5 projects
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateLibraryManifest(parameters) → {Promise.<undefined>}
Task for creating a library manifest.json from its .library file.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateLibraryPreload(parameters) → {Promise.<undefined>}
Task for library bundling.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateManifestBundle(parameters) → {Promise.<undefined>}
Task for manifestBundler.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateResourcesJson(parameters) → {Promise.<undefined>}
Task for creating a resources.json file, describing all productive build resources.
The detailed structure can be found in the documentation: https://sdk.openui5.org/topic/adcbcf8b50924556ab3f321fcd9353ea
Not supported in combination with task module:@ui5/builder.tasks.generateStandaloneAppBundle. Therefore it is also not supported in combination with self-contained build.
Example
const resourcesJson = {
"_version": "1.1.0",
"resources": [
{
"name": "Component-preload.js",
"module": "application/mine/Component-preload.js",
"size": 3746,
"merged": true,
"included": [
"application/mine/Component.js",
"application/mine/changes/coding/MyExtension.js",
"application/mine/changes/flexibility-bundle.json",
"application/mine/changes/fragments/MyFragment.fragment.xml",
"application/mine/manifest.json"
]
},
{
"name": "resources.json",
"size": 1870
},
{
"name": "rules/Button-dbg.support.js",
"module": "application/mine/rules/Button.support.js",
"size": 211,
"format": "raw",
"isDebug": true,
"required": [
"application/mine/library.js",
"sap/ui/core/Control.js"
],
"condRequired": [
"application/mine/changeHandler/SplitButton.js",
"sap/ui/core/format/DateFormat.js"
],
"dynRequired": true,
"support": true
}
]
};
Parameters:
Name | Type | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateStandaloneAppBundle(parameters) → {Promise.<undefined>}
Task for bundling standalone applications.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateThemeDesignerResources(parameters) → {Promise.<undefined>}
Generates resources required for integration with the SAP Theme Designer.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) generateVersionInfo(parameters) → {Promise.<undefined>}
Task to create sap-ui-version.json
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) replaceBuildtime(parameters) → {Promise.<undefined>}
Task to replace the buildtime
${buildtime}
.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) replaceCopyright(parameters) → {Promise.<undefined>}
Task to to replace the copyright.
The following placeholders are replaced with corresponding values:
- ${copyright}
- @copyright@
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) replaceVersion(parameters) → {Promise.<undefined>}
Task to replace the version
${version}
.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>
(static) uglify(parameters) → {Promise.<undefined>}
- Source:
Task to minify resources.
Parameters:
Name | Type | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters |
object | Parameters
Properties
|
Returns:
Promise resolving with
undefined
once data has been written
- Type
- Promise.<undefined>