Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ui5-task-zipper

ui5-community150.8kApache-2.03.5.0

Task for the UI5 CLI to zip the webapp.

readme

UI5 task for zipping all project resources

:wave: This is a community project and there is no official support for this package! Feel free to use it, open issues, contribute, and help answering questions.

Task for ui5-builder, enabling zipping.

Prerequisites

:warning: UI5 CLI Compatibility All releases of this UI5 CLI extension using the major version 3 require UI5 CLI V3. Any previous releases below major version 3 (if available) also support older versions of the UI5 CLI. But the usage of the latest UI5 CLI is strongly recommended!

Install

npm install ui5-task-zipper --save-dev

Configuration options (in $yourapp/ui5.yaml)

  • debug: true|false Verbose logging

  • archiveName: String Desired name for the .zip archive. Default value: <app-id.zip>

  • additionalFiles: String<Array> or Object<Array> List of files to be included in the ZIP archive relative to the project root or Map of of files to be included in the ZIP archive relative to the project root and target path in the ZIP archive.

  • onlyZip: true|false Set this to true to omit the resources contained in the ZIP from the build result (typically in the dist folder). By default, the build result contains all resources and the ZIP.

  • includeDependencies: true|false or String<Array> Set this to true if you also want to include the dependencies (UI5 libraries) in the zip archive. Otherwise, it will only include the workspace files (controller, views, etc). In order to select only specific dependencies to be included in the final zip you just need to specify the list of dependencies (value of ui5.yaml: metadata > name).

  • relativePaths true|false Set this to true if you want to turn absolute data source paths in the manifest.json into relative paths, e.g. "uri": "/backend/" will be turned into "uri": "backend/" upon ZIP creation. This is useful when deploying the ZIP to the HTML Application Repository on SAP BTP, Cloud Foundry environment to later consume it in SAP Build Work Zone, standard edition, which only supports relative paths.

NOTE: Starting with release 3.0.5, the ui5-task-zipper includes the generated workspace resources such as the self-contained bundles (sap-ui-custom.* files). To do so, it is important that the ui5-task-zipper is running as last task in the build.

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    // ...
    "ui5-task-zipper": "*"
    // ...
}
  1. configure it in $yourapp/ui5.yaml:
builder:
  customTasks:
  - name: ui5-task-zipper
    afterTask: generateVersionInfo
    configuration:
      archiveName: "webapp"
      additionalFiles:
        "app/foo/xs-app.json":      # source path will be used as target path
        "path/to/foo.js": "foo.js"  # file will be placed in root of ZIP file
        "path/to/files/bar.js": "some/custom/dir/bar.js"

Select the dependencies to include

With the configuration option includeDependencies you can also specifiy a list of dependencies to be included in the zip file. To do so, specify a list of dependencies using their ui5.yaml: metadata > name property:

builder:
  customTasks:
  - name: ui5-task-zipper
    afterTask: generateVersionInfo
    configuration:
      includeDependencies:
      - sap.ui.table
      - ui5.ecosystem.demo.lib

How it works

The task can be used to zip all project resources in an archive.

License

This work is dual-licensed under Apache 2.0 and the Derived Beer-ware License. The official license will be Apache 2.0 but finally you can choose between one of them if you use this work.

When you like this stuff, buy @vobu or @IObert_ a beer or buy @pmuessig a coke when you see them. diff --git a/packages/ui5-task-zipper/readme.md b/packages/ui5-task-zipper/readme.md

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.5.0 (2025-12-02)

Features

3.4.4 (2025-09-17)

Note: Version bump only for package ui5-task-zipper

3.4.3 (2025-09-15)

Note: Version bump only for package ui5-task-zipper

3.4.2 (2025-07-06)

Bug Fixes

3.4.1 (2025-03-19)

Bug Fixes

  • ui5-task-zipper: recreate escaped single quotes in Component-preload.js (#1168) (a672eab)

3.4.0 (2025-02-06)

Features

3.3.3 (2025-02-01)

Bug Fixes

  • ui5-task-zipper: escape stringified json (#1159) (ea10350)

3.3.2 (2025-01-30)

Bug Fixes

  • ui5-task-zipper: also fix relative path in Component-preload.js (#1152) (7b157d6)

3.3.1 (2024-11-01)

Bug Fixes

3.3.0 (2024-09-06)

Features

  • enhanced v4 compat + update dependencies (#1070) (2d7ed16)

3.2.2 (2024-08-25)

Note: Version bump only for package ui5-task-zipper

3.2.1 (2024-08-09)

Bug Fixes

  • ui5-task-zipper: make sure manifest gets zipped if no data sources exist (#1055) (9758e76)

3.2.0 (2024-08-07)

Features

  • ui5-task-zipper: optional parameter to turn absolute data sour… (#1046) (f9ceb6d)

3.1.7 (2024-07-22)

Note: Version bump only for package ui5-task-zipper

3.1.6 (2024-07-22)

Note: Version bump only for package ui5-task-zipper

3.1.5 (2024-07-19)

Bug Fixes

  • ui5-task-zipper: avoid duplicate entries, show warning and skip (#1036) (87eb7c8)

3.1.4 (2024-05-15)

Note: Version bump only for package ui5-task-zipper

3.1.3 (2024-02-18)

Note: Version bump only for package ui5-task-zipper

3.1.2 (2024-01-17)

Note: Version bump only for package ui5-task-zipper

3.1.1 (2023-12-10)

Note: Version bump only for package ui5-task-zipper

3.1.0 (2023-11-03)

Features

3.0.4 (2023-10-14)

Note: Version bump only for package ui5-task-zipper

3.0.3 (2023-10-02)

Note: Version bump only for package ui5-task-zipper

3.0.2 (2023-09-08)

Note: Version bump only for package ui5-task-zipper

3.0.1 (2023-08-12)

Note: Version bump only for package ui5-task-zipper

3.0.0 (2023-07-31)

Bug Fixes

Features

BREAKING CHANGES

  • The support for UI5 Tooling V2 has been removed

0.8.5 (2023-07-01)

Bug Fixes

  • ui5-tooling-transpile: transpile at startup + caching (#757) (6c7946d)

0.8.4 (2023-06-15)

Bug Fixes

0.8.3 (2023-06-03)

Bug Fixes

0.8.2 (2023-04-17)

Note: Version bump only for package ui5-task-zipper

0.8.1 (2023-04-11)

Bug Fixes

  • ui5-task-zipper: detection of project name for deps (#722) (400e967), closes #550

0.8.0 (2023-04-10)

Features

  • ui5-task-zipper: allow to specify the deps to include (#720) (bec868c), closes #550

0.7.5 (2023-03-31)

Bug Fixes

0.7.4 (2023-03-20)

Bug Fixes

  • implement determineRequiredDependencies for all tasks (#692) (d27b55e)
  • improvements of projects for tooling 3.0 (#696) (6bd880f)

0.7.3 (2023-02-08)

Note: Version bump only for package ui5-task-zipper

0.7.2 (2023-01-23)

Note: Version bump only for package ui5-task-zipper

0.7.1 (2022-12-31)

Bug Fixes

  • fixes compatibility issues with V3 (1ba4c57)

0.7.0 (2022-12-20)

Features

  • ui5-tooling-transpile: enable config files (#660) (9f854ec)

0.6.1 (2022-12-05)

Bug Fixes

0.6.0 (2022-12-01)

Features

  • ui5-task-zipper: allow mapping of additional files by target path (#654) (097628c)

0.5.1 (2022-08-17)

Bug Fixes

  • exclude resources with OmitFromBuildResult tag from zip (#643) (f33c123)

0.5.0 (2022-06-21)

Features

BREAKING CHANGES

  • new package manager

  • refactor: updated tests to pass with pnpm

  • refactor: iasync still failing

  • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

  • fix(ui5-app): make Karma work with pnpm

  • chore(ui5-app): remove uiveri5 from sample

  • chore(ui5-app): add updated wdio.conf

  • fix: make prettier and eslint work with pnpm

  • fix: fix cf_dest tests

restructured tests and added node_modules as symlink

  • fix(ui5-app): adding eslint for wdio and mocha

  • chore(ui5-middleware-cfdestination): cleanup

  • feat(ui5-tooling-modules): add bundling support for AMD

  • chore(ui5-tooling-modules): cleanup

  • chore: fix code style

  • fix(ui5-task-flatten-library): support files without extensions

  • refactor: updated tests to pass with pnpm

  • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

  • fix: make prettier and eslint work with pnpm

  • fix: update actions, lerna, vscode for pnpm

  • chore: only run test on tooling extensions

  • chore: use sequential tests for ava

  • chore: add @ui5/cli dev dependency for ava tests

  • chore: enable support for local act GH action tests

  • chore: add docu for local GitHub action execution

  • chore: docu cleanup

  • chore: re-add ncu scripts

Co-authored-by: Peter Muessig peter.muessig@sap.com

0.4.13 (2022-05-23)

Note: Version bump only for package ui5-task-zipper

0.4.12 (2022-05-22)

Bug Fixes

0.4.11 (2022-04-19)

Reverts

  • Revert "chore: add metadata to package.json for all packages for ui5-community website (#600)" (#601) (b6037d4), closes #600 #601

0.4.10 (2022-04-11)

Note: Version bump only for package ui5-task-zipper

0.4.9 (2022-02-22)

Note: Version bump only for package ui5-task-zipper

0.4.8 (2022-02-22)

Note: Version bump only for package ui5-task-zipper

0.4.7 (2021-10-29)

Note: Version bump only for package ui5-task-zipper

0.4.6 (2021-10-29)

Note: Version bump only for package ui5-task-zipper

0.4.5 (2021-10-28)

Note: Version bump only for package ui5-task-zipper

0.4.4 (2021-09-29)

Bug Fixes

  • ui5-task-zipper: Absolute Path Error for Third Party Dependencies (#541) (fd6f022)

0.4.3 (2021-05-05)

Note: Version bump only for package ui5-task-zipper

0.4.2 (2021-01-25)

Note: Version bump only for package ui5-task-zipper

0.4.1 (2021-01-05)

Note: Version bump only for package ui5-task-zipper

0.4.0 (2020-12-17)

Features

  • add "keepResources" config flag + fix bug with missing dependencies (#385) (aaaab50)

0.3.2 (2020-09-20)

Note: Version bump only for package ui5-task-zipper

0.3.1 (2020-07-17)

Note: Version bump only for package ui5-task-zipper

0.3.0 (2020-05-24)

Features

  • pwa: added pwa build for sample application (c36baf2)

0.2.0 (2020-05-06)

Features

  • zipper: allow to include additional files (#198) (abf6d01)

0.1.5 (2020-05-01)

Note: Version bump only for package ui5-task-zipper

0.1.4 (2020-04-04)

Note: Version bump only for package ui5-task-zipper

0.1.3 (2020-03-25)

Note: Version bump only for package ui5-task-zipper