ui5-task-copy-themes

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i ui5-task-copy-themes

Weekly Downloads

1

Version

1.0.3

License

Apache-2.0

Unpacked Size

20.6 kB

Total Files

5

Last publish

Collaborators

  • tomselke