npm.io
1.0.3 • Published 4 years ago

ui5-task-copy-themes

Licence
Apache-2.0
Version
1.0.3
Deps
1
Size
20 kB
Vulns
0
Weekly
0

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-dev

Configuration 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: string File path to the resources folder 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 .env file by using the format ${env.<variable-name>}.
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