ui5-deployer
A custom module for UI5 Tooling that deploys Fiori/UI5 apps to SAP NetWeaver ABAP, SAP Cloud Platform Neo or Cloud Foundry, configured in a deployer section of ui5.yaml.
Getting a built UI5 app onto an SAP system is a separate tool and configuration for each target. This module reads a deployer section under customConfiguration in ui5.yaml, whose type is sap-netweaver, sap-cp-neo or sap-cp-cf, and runs ui5-deployer deploy, with options for the transport request, the user, the password and the Cloud Foundry space. For an ABAP server the transport is ADT by default, "to avoid breaking old projects", or OData, which the README recommends for performance. Credentials can also come from UI5_DEPLOYER_* environment variables or an .env file. Its README says the module is under development and not part of the official SAP UI5 Tooling. The npm latest tag points to 0.4.1, while the registry also lists versions 1.0.0 to 1.1.1.
Facts
Where it sits
Who is behind it
In the atlas: maintains 16, contributes to 41, wrote 4@mauriciolauffermaintainerMarcel SchorkContributes to this
In the atlas: contributes to 12@marcelschork1 contributor
What it declares
Every artifact
- Type
- CLI
- Origin
- Independently maintained
As a CLI
- Distributed through
- npm
Connections
Serving an app locally and building it for deployment
Download
Install
npm add ui5-deployerDerived from the package name. No recipe recorded; the README has the configuration.
README
quoted from mauriciolauffer/ui5-deployer under Apache-2.0, readIntroduction
This is a custom module integrated with ui5-tooling to deploy Fiori/UI5 apps to SAP environments. This module is under development and it is not part of the official SAP ui5-tooling. For now, it uses a custom version of ui5-cli for deployment capabilities. It's heavily inspired on ui5-build.
Feel free to contribute to the project. PRs are welcome =)
Deploy to
You should be able to deploy to:
- SAP Netweaver: ABAP server (via OData or ADT)
- SAP Cloud Platform: NEO environment
- SAP Cloud Platform: Cloud Foundry environment
Project Configuration
Typically located in a ui5.yaml file per project. You have 3 options for remote systems. They share some configuration, but each one has its own specific details.
This is the basic setup for ui5-deployer shared across all remote system options, it does not include the specific details for a given remote system. Some of the properties are not required, some are.
Properties
<root>
The ui5.yaml file from your Fiori/UI5 application/library should have a new section called deployer. Deployer section has the following parameters:
ui5.yaml file for deployer
deployer: root attribute, all deployer details go under it
type: Indicates the remote system where the project will be deployed. Must besap-netweaver||sap-cp-neo||sap-cp-cfsourcePath: Path to the folder where your production ready project isconnection: Connection details to the remote systemurl: URL endpoint to connect to the remote systemproxy(optional): an HTTP proxy to be usedstrictSSL(optional): if true, requires SSL certificates to be valid. Note: to use your own certificate authority, you need to specify the path to the SSL Certificate. Must betrue||false. Default isfalse.SSLCertificatePath(optional): path to the SSL Certificate in case you are using your own certificate authority
credentials: Credentials to be used when accessing the remote system. This section will be removed soon as it might be a huge security issue. One might end up pushing username/password to the git repo. Username/password should be passed via CLI command only.username: Usernamepassword: Password
sapCloudPlatform(optional): SAP Cloud Platform targetneo(optional): NEO environment targetaccount: SAP CP NEO AccountcliPath(optional): In case neo CLI is not global, inform the path to it. https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/7613dee4711e1014839a8273b0e91070.html
cloudFoundry(optional): CF environment targetorg: Organizationspace: SpacecliPath(optional): In case cf CLI is not global, inform the path to it. https://docs.cloudfoundry.org/cf-cli
abapRepository(optional): SAP NetWeaver ABAP Repository targetclient: SAP client/mandtlanguage: SAP Logon LanguagetransportRequest: ABAP Transport Request Numberpackage: ABAP PackagebspApplication: BSP Application namebspApplicationText: BSP Application descriptionmethod:adt||odata. Default isadt. ADT API endpoint is/sap/bc/adt. OData API endpoint is/sap/opu/odata/UI5/ABAP_REPOSITORY_SRV. ADT is the default to avoid breaking old projects. However, OData is recommended for better performance, it doesn't send multiples files, it sends just a single *.zip containing the whole project.skipAdtValidations(optional): Does not validate the existence of some ADT APIs, ABAP packages and Transport Requests used during deployment. Used for older ABAP versions where these ADT APIs are not available. Must betrue||false. Default isfalse.appIndexCalculate(optional): Calculation of SAPUI5 Application Index for SAPUI5 Repositories (/UI5/APP_INDEX_CALCULATE). See SAPUI5 Application Index. Must betrue||false. Default isfalse.
SAP Netweaver: ABAP server
specVersion: '1.0'
metadata:
name: ui5-deployer-app-test
type: application
customConfiguration:
deployer:
type: sap-netweaver
sourcePath: dist/ # Path to the project to be deployed
resources:
excludes:
- "dist/path_to_excluded/**"
connection:
url: https://dev.my-sap-server.com
proxy: https://my.proxy.com:43000
strictSSL: true
SSLCertificatePath: /certs/my-ssl-certificate.pem
credentials:
username: MyUsername
password: MyPassword
abapRepository:
client: 100
language: EN
transportRequest: ABAPDK999999
package: ZMYPACKAGE
bspApplication: ZDEPLOYAPP001
bspApplicationText: TEST DEPLOY APP x1
method: odata
skipAdtValidations: true
appIndexCalculate: true
SAP Cloud Platform: NEO environment
specVersion: '1.0'
metadata:
name: ui5-deployer-app-test
type: application
customConfiguration:
deployer:
type: sap-cp-neo
sourcePath: /dist/*.mtar # Path to the .mtar file to be deployed
connection:
url: https://hanatrial.ondemand.com
credentials:
username: MyUsername
password: MyPassword
sapCloudPlatform:
neo:
account: myNEO12345Account
cliPath: C:\neo-java-web-sdk\tools
SAP Cloud Platform: Cloud Foundry environment
specVersion: '1.0'
metadata:
name: ui5-deployer-app-test
type: application
customConfiguration:
deployer:
type: sap-cp-cf
sourcePath: /dist # Path to the manifest.yml file: https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html
connection:
url: https://api.cf.eu10.hana.ondemand.com
credentials:
username: MyUsername
password: MyPassword
sapCloudPlatform:
cloudFoundry:
org: myORG
space: mySPACE
cliPath: C:\cf-cli\tools
For projects using ui5.yaml specVersion 2.1 or higher
Projects using ui5.yaml specVersion 2.1 or higher must use the new customConfiguration property.
https://sap.github.io/ui5-tooling/pages/Configuration/#custom-configuration
PS: you can also use the customConfiguration setup for any other specVersion, but 2.0
specVersion: '2.1'
metadata:
name: ui5-deployer-app-test
type: application
customConfiguration:
deployer:
type: sap-netweaver
sourcePath: dist/ # Path to the project to be deployed
connection:
url: https://dev.my-sap-server.com
strictSSL: false
credentials:
username: MyUsername
password: MyPassword
abapRepository:
client: 100
language: EN
transportRequest: ABAPDK999999
package: ZMYPACKAGE
bspApplication: ZDEPLOYAPP001
bspApplicationText: TEST DEPLOY APP x1
Installing
Install ui5-deployer as a devDependency in your project.json
$ npm i --save-dev ui5-deployer
Getting Started
Pick one of the remote systems above and edit your ui5.yaml file according to it.
You have the option to use all parameters as is from the ui5.yaml file or overwrite few of them when executing ui5-cli.
You can overwrite: abapRepository.transportRequest || credentials.username || credentials.password || sapCloudPlatform.cloudFoundry.space
$ ui5-deployer deploy
$ ui5-deployer deploy --transport-request=ABAPDK99999
$ ui5-deployer deploy --username=MyUsername --password=MyPassword
$ ui5-deployer deploy --space=dev
You can see an example here: https://github.com/mauriciolauffer/ui5-deployer-app-test
The modified ui5-cli can be found here: https://github.com/mauriciolauffer/ui5-deployer-cli
Support to Environment Variables
The aforementioned properties can also be set via Environment Variables. This option follows the Twelve-Factor App best practices. The tool also supports .env files.
The expected Environment Variables are:
UI5_DEPLOYER_USERNAME=MY_SAP_USER
UI5_DEPLOYER_PASSWORD=MY_SAP_PASSWORD
UI5_DEPLOYER_ABAP_TR=ABAPDK999999
UI5_DEPLOYER_NEO_CLIPATH=/path/to/neo/cli/
UI5_DEPLOYER_CF_SPACE=dev
If you are using .env files, do not push them to your git repo as you may expose the secrets to everbody! Make sure to add .env to your .gitignore file.
Build and Test
TODO: Describe and show how to build your code and run the tests.
History
Fixes 1
Notes
Bug Fixes
- Improve error log + add node v12 support (6b9e384)
Features 9, Fixes 8
Notes
Features
- CLI is not an extra pkg + replace requestjs (#14) (0538fed)
- Deploy to SAP CP NEO and CF (36808d5)
- Deploy via OData /UI5/ABAP_REPOSITORY_SRV (#26) (c9d6eaf)
- ENV vars for NEO cli (#20) (9fb9ddf)
- More error logs (6d7d459)
- readme with SAP CP instructions (9782801)
- Skip ADT validations (0256bbb)
- Support resource exclusion (13e1d7d)
- Support ui5.yaml customConfiguration (da2272d)
Bug Fixes
Others providing
Compare all 42 on the Build and dev-server tooling page →- UI5 ToolsUI5 ToolsA VS Code extension for UI5 developers that serves, proxies, builds and deploys UI5 projects from one workspace-wide configuration, with live reload, a Gateway deployer and a BSP importer.independent, ui5VS Code extension to serve, proxy, build and deploy UI5 projectsfrom UI5
- ui5-middleware-route-proxyui5-middleware-route-proxyA UI5 server middleware that forwards requests matching a route prefix to a backend host, configured per route in ui5.yaml, with credentials read from a .env file rather than the yaml.independent, ui5UI5 server middleware proxying route prefixes to a backendfrom UI5
- ui5-task-cachebuster-indexingui5-task-cachebuster-indexingA UI5 builder task that copies the build output into a timestamped folder inside dist so the UI5 cachebuster can resolve it; it supports timestamps only, not the hash mode.independent, ui5UI5 builder task preparing build output for the cachebusterfrom UI5
- ui5-task-transpile-genui5-task-transpile-genA UI5 builder task that transpiles ES6 to ES5, including async/await, with Babel at build time, registered in ui5.yaml with a bundle definition that includes the regenerator runtime.independent, ui5UI5 builder task transpiling ES6 to ES5 with Babelfrom UI5
- ui5-middleware-odata-recorderui5-middleware-odata-recorderA UI5 server middleware that records the OData traffic a running app makes against a real backend and writes entity JSON files and metadata.xml that the Fiori elements mock server can replay.independent, ui5UI5 middleware recording OData traffic as mock server datasetsfrom UI5
- ui5-plugin-loaderui5-plugin-loaderA UI5 Tooling v4 extension that registers a project's other extensions itself: one entry in ui5.yaml, and every dependency carrying a ui5-plugin-loader.json manifest is mounted as middleware and as a build task.independent, ui5UI5 Tooling v4 extension that registers other extensionsfrom UI5
- ui5-task-dts-generatorui5-task-dts-generatorA UI5 builder task that generates d.ts files, TypeScript type declarations, during the build of a UI5 library written in JavaScript, by wrapping @ui5/dts-generator.independent, ui5UI5 builder task generating d.ts type declarationsfrom UI5
- ui5-task-minifierui5-task-minifierA UI5 builder task that minifies the HTML, CSS and JSON files the UI5 builder leaves as they are, with one switch per file type, using html-minifier-terser and clean-css.independent, ui5UI5 builder task minifying HTML, CSS and JSON filesfrom UI5
- ui5-middleware-oidcui5-middleware-oidcA UI5 Tooling server middleware that puts an OpenID Connect login in front of the UI5 dev server, built on express-openid-connect, which receives its configuration block as written.independent, ui5UI5 dev server middleware adding an OpenID Connect loginfrom UI5
- generator-ui5-library-af-deploygenerator-ui5-library-af-deployA Yeoman generator that writes the SAP BTP Application Frontend deployment configuration, mta.yaml, ui5-deploy.yaml, xs-app.json and xs-security.json, into an existing UI5 library project.independent, ui5Yeoman generator for Application Frontend config in UI5 librariesfrom UI5
- ui5-middleware-destinationui5-middleware-destinationA UI5 Tooling server middleware that proxies requests to backends named in WebIDE-style destination files and serves the routes of a neo-app.json, with Basic Authentication only.independent, ui5UI5 Tooling middleware proxying destinations and neo-app.json routesfrom UI5
- ui5-task-check-eocpui5-task-check-eocpA UI5 builder task that matches the UI5 version in ui5.yaml against the versions retrieved from ui5.sap.com and warns during the build once that version's End of Cloud Provisioning quarter has been reached.independent, ui5UI5 build task warning when the app's UI5 version reaches EOCPfrom UI5
- @ui5/cli@ui5/cliThe UI5 Tooling command line for project setup, the local dev server and the build, which defines a UI5 project's shape and its two extension points, custom middleware and custom tasks.sap official, ui5UI5 Tooling command line for project setup, dev server and buildfrom UI5
- ui5-task-btp-manifestui5-task-btp-manifestA UI5 Tooling custom task that writes the surrounding app's sap.cloud service name into the bundled Spreadsheet Importer's manifest at build time, so the two match on SAP BTP.community org, ui5UI5 Tooling task writing the service name into the importer manifestfrom UI5
- ui5-middleware-approuterui5-middleware-approuterA UI5 CLI middleware that puts @sap/approuter in front of the UI5 dev server, proxying it to Cloud Foundry or XS Advanced destinations during development.community org, ui5UI5 CLI middleware proxying the dev server through @sap/approuterfrom UI5
- ui5-middleware-capui5-middleware-capA UI5 CLI middleware that runs a CDS server inside the UI5 dev server, mounted at a path the UI5 project configures, so one command serves the app and its CAP services.community org, ui5UI5 CLI middleware running a CDS server inside the UI5 dev serverfrom UI5
- ui5-middleware-hmrui5-middleware-hmrAn experimental UI5 middleware for hot module replacement, swapping a changed module in during development instead of reloading the whole page.community org, ui5Experimental UI5 middleware for hot module replacementfrom UI5
- ui5-middleware-iasyncui5-middleware-iasyncA UI5 dev-server middleware built on browsersync.io that syncs user interactions across connected browsers over a websocket, replaying an action from one browser in the others for manual testing.community org, ui5UI5 middleware syncing interactions across browsers over websocketfrom UI5
- ui5-middleware-indexui5-middleware-indexA UI5 dev-server middleware that delivers a configured welcome page, index.html by default, for the root path instead of the ui5-server directory listing.community org, ui5UI5 middleware serving a chosen welcome page at the root pathfrom UI5
- ui5-middleware-livereloadui5-middleware-livereloadA dev-server middleware that adds live reload to the UI5 dev server, reloading the page when the sources in the app's webapp folder change.community org, ui5Live reload middleware for the UI5 dev serverfrom UI5
- ui5-middleware-oneloginui5-middleware-oneloginA UI5 dev-server middleware that logs into a system such as SAP Gateway with headless Playwright on the first request and reuses the session cookie for every later request.community org, ui5UI5 middleware logging in with Playwright and reusing the sessionfrom UI5
- ui5-middleware-serveframeworkui5-middleware-serveframeworkA UI5 middleware that serves a UI5 framework built on the local machine to the dev server, in place of a framework version resolved another way.community org, ui5UI5 middleware serving a locally built UI5 frameworkfrom UI5
- ui5-middleware-servestaticui5-middleware-servestaticA UI5 dev-server middleware that serves static resources from a filesystem path or an installed npm package path, built on serve-static, with either path settable through an environment variable.community org, ui5UI5 middleware serving static resources from a path or npm packagefrom UI5
- ui5-middleware-simpleproxyui5-middleware-simpleproxyA UI5 dev-server middleware that proxies requests from the local dev server to a backend system, so the app can reach the backend's services during development.community org, ui5Dev-server middleware proxying requests to a backend systemfrom UI5
- ui5-middleware-ui5ui5-middleware-ui5A UI5 middleware that lets one UI5 application be included as a dependency of another and served through that application's dev server.community org, ui5UI5 middleware including one UI5 application in anotherfrom UI5
- ui5-middleware-webjarsui5-middleware-webjarsA UI5 dev-server middleware that loads JAR files from a configured path and serves the static resources bundled inside them, following the WebJars convention of META-INF/resources/.community org, ui5UI5 middleware serving static resources from JAR files (WebJars)from UI5
- ui5-middleware-websocketui5-middleware-websocketUI5 middleware utilities that add WebSocket support to Express-based dev servers such as the UI5 server, which has no WebSocket channel of its own.community org, ui5WebSocket support for Express-based dev servers such as UI5'sfrom UI5
- ui5-task-cachebusterui5-task-cachebusterA UI5 builder task that cachebusts a standalone UI5 application by moving its build output into a timestamped subfolder and pointing index.html's resource roots at it.community org, ui5UI5 builder task cachebusting standalone UI5 applicationsfrom UI5
- ui5-task-copyrightui5-task-copyrightA UI5 builder task that appends copyright headers to TypeScript, JavaScript and XML files on every build, so the header is not added to each source file by hand.community org, ui5UI5 builder task appending copyright headers to source filesfrom UI5
- ui5-task-flatten-libraryui5-task-flatten-libraryA UI5 builder task that flattens a library's build output, removing the project namespace and resources folder for deployment to SAP NetWeaver, now also offered by the UI5 CLI itself.community org, ui5UI5 builder task flattening library output for SAP NetWeaverfrom UI5
- ui5-task-i18ncheckui5-task-i18ncheckA UI5 builder task that cross-checks every XML view against the app's i18n properties files and logs a warning where a translation is missing; views created in JavaScript are not checked.community org, ui5UI5 builder task checking XML views for missing i18n textsfrom UI5
- ui5-task-minify-xmlui5-task-minify-xmlA UI5 builder task that minifies XML resources such as views and fragments, which a plain UI5 build otherwise ships unminified.community org, ui5UI5 builder task minifying XML views and fragmentsfrom UI5
- ui5-task-pwa-enablerui5-task-pwa-enablerA UI5 builder task that turns a UI5 application into a progressive web app by generating a web manifest and a service worker under one of five caching strategies.community org, ui5UI5 builder task turning a UI5 app into a progressive web appfrom UI5
- ui5-task-zipperui5-task-zipperA build task for the UI5 tooling that packages the UI5 build result, the webapp, as a zip archive at the end of the build.community org, ui5Build task packaging the UI5 build result as a zip archivefrom UI5
- ui5-tooling-lessui5-tooling-lessA UI5 CLI extension, a build task and a dev-server middleware, that compiles an app's Less files into CSS at build time and live while the UI5 server runs.community org, ui5UI5 CLI extension compiling Less files into CSSfrom UI5
- ui5-tooling-modulesui5-tooling-modulesA set of UI5 tooling extensions that load and convert plain npm packages into UI5 AMD-like modules, so the UI5 module loader can consume them.community org, ui5UI5 tooling extensions loading npm packages as UI5 modulesfrom UI5
- ui5-tooling-stringreplaceui5-tooling-stringreplaceA UI5 CLI extension for string replacement during the build, for placeholders or tokens in source files that have to be replaced at build time.community org, ui5UI5 CLI extension for string replacement during the buildfrom UI5
- ui5-tooling-transpileui5-tooling-transpileA UI5 CLI extension that transpiles modern JavaScript or TypeScript during the UI5 build, with a transformJSX option that handles JSX and TSX in the same step.community org, ui5UI5 CLI extension transpiling code during the UI5 buildfrom UI5
- @ui5/logger@ui5/loggerUI5 CLI's internal logger, described by its own readme as internal — it appears here because other UI5 tooling depends on it.sap official, ui5Internal logger of the UI5 CLIfrom UI5
- @ui5/middleware-code-coverage@ui5/middleware-code-coverageUI5 CLI server middleware that instruments a project's JavaScript files with Istanbul as the dev server sends them, and generates the coverage report from the records the OpenUI5 QUnit tests send back.sap official, ui5UI5 CLI middleware for Istanbul code coveragefrom UI5
- @ui5/tooling-webc@ui5/tooling-webcDeprecated UI5 Tooling extensions that generate UI5 library wrapper projects for UI5 Web Components and serve them during development; the README points to ui5-tooling-modules instead.sap official, ui5Deprecated UI5 Tooling extensions for UI5 Web Components wrappersfrom UI5
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:mauriciolauffer-ui5-deployer- JSON
- /artifacts/mauriciolauffer-ui5-deployer.json
- MCP
- Connecting an agent