1.0.3 • Published 4 years ago
ui5-task-copy-themes v1.0.3
ui5-task-copy-themes
UI5 Tooling build task to copy theming resources from a UI5 runtime to a localResources folder in the project build.
Install
The package should be installed as part of your project's dev dependencies.
npm install ui5-task-copy-themes --save-devConfiguration in ui5.yaml
The task requires the same configuration options as other tasks to be run as part of your
build. In addition, a configuration option of runtimeLocation is required to provide the location
of the runtime from which you want to copy the theming files.
- configuration
- runtimeLocation:
stringFile path to theresourcesfolder of the UI5 runtime that theme resources should be copied from. (e.g./Users/myuser/UI5/sapui5-rt-1.82.0/resources). This can also be specified as a parameter from the project's.envfile by using the format${env.<variable-name>}.
- runtimeLocation:
Example:
builder:
customTasks:
- name: ui5-task-copy-themes
afterTask: generateVersionInfo
configuration:
runtimeLocation: "/Users/myuser/UI5/sapui5-rt-1.82.0/resources"Example Using .env:
builder:
customTasks:
- name: ui5-task-copy-themes
afterTask: generateVersionInfo
configuration:
runtimeLocation: ${env.runtimeLocation}Corresponding entry in the project's .env file:
runtimeLocation=/Users/myuser/UI5/sapui5-rt-1.82.0/resources