@sap/ux-ui5-tooling 1.19.5 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +63 -58
- package/dist/cli/index.js +29301 -32430
- package/dist/middlewares/fiori-tools-appreload.js +68 -54
- package/dist/middlewares/fiori-tools-preview.js +7623 -5988
- package/dist/middlewares/fiori-tools-proxy.js +8331 -12017
- package/dist/middlewares/fiori-tools-servestatic.js +47 -197
- package/dist/tasks/cf-deploy/index.js +18252 -16617
- package/dist/tasks/deploy/index.js +28363 -31639
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@ All notable changes to this project are documented in this file.
|
|
|
3
3
|
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/) and the changelog is formatted based on [Keep a Changelog](http://keepachangelog.com/).
|
|
5
5
|
|
|
6
|
+
## [1.20.0] - 2025-11-27
|
|
7
|
+
### Quality
|
|
8
|
+
| Package | Change |
|
|
9
|
+
|---|---|
|
|
10
|
+
| [@sap-ux/preview-middleware](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/preview-middleware)) | [`0.23.54` -> `0.23.59`] |
|
|
11
|
+
| [@sap-ux/deploy-tooling](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/deploy-tooling)) | [`0.17.0` -> `0.17.2`] |
|
|
12
|
+
| [@sap-ux/project-access](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/project-access)) | [`1.32.8` -> `1.32.9`] |
|
|
13
|
+
| [@sap-ux/telemetry](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/telemetry)) | [`0.6.38` -> `0.6.39`] |
|
|
14
|
+
|
|
15
|
+
## [1.19.6] - 2025-11-13
|
|
16
|
+
### Quality
|
|
17
|
+
| Package | Change |
|
|
18
|
+
|---|---|
|
|
19
|
+
| [@sap-ux/preview-middleware](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/preview-middleware)) | [`0.23.40` -> `0.23.54`] |
|
|
20
|
+
| [@sap-ux/axios-extension](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/axios-extension)) | [`1.24.1` -> `1.24.2`] |
|
|
21
|
+
| [@sap-ux/backend-proxy-middleware](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/backend-proxy-middleware)) | [`0.10.10` -> `0.10.12`] |
|
|
22
|
+
| [@sap-ux/btp-utils](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/btp-utils)) | [`1.1.4` -> `1.1.5`] |
|
|
23
|
+
| [@sap-ux/deploy-tooling](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/deploy-tooling)) | [`0.16.70` -> `0.17.0`] |
|
|
24
|
+
| [@sap-ux/reload-middleware](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/reload-middleware)) | [`0.3.4` -> `0.3.5`] |
|
|
25
|
+
| [@sap-ux/serve-static-middleware](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/serve-static-middleware)) | [`0.4.1` -> `0.4.2`] |
|
|
26
|
+
| [@sap-ux/store](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/store)) | [`1.3.1` -> `1.3.3`] |
|
|
27
|
+
| [@sap-ux/store](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/store)) | [`1.1.4` -> `1.2.0`] |
|
|
28
|
+
| [@sap-ux/ui5-proxy-middleware](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/ui5-proxy-middleware)) | [`1.6.4` -> `1.6.5`] |
|
|
29
|
+
| [@sap-ux/logger](https://github.com/SAP/open-ux-tools) ([source](https://github.com/SAP/open-ux-tools/tree/HEAD/packages/logger)) | [`0.7.0` -> `0.7.1`] |
|
|
30
|
+
|
|
6
31
|
## [1.19.5] - 2025-10-30
|
|
7
32
|
### Quality
|
|
8
33
|
| Package | Change |
|
package/README.md
CHANGED
|
@@ -7,11 +7,11 @@ Furthermore, the module expose the cli `fiori` offering e.g. the [`fiori run`](#
|
|
|
7
7
|
- For more information about migration to the latest `@ui5/cli`, see [here](https://sap.github.io/ui5-tooling/stable/).
|
|
8
8
|
- Starting with version `1.17.6`, the minimum required Node.js version is 20.19.2 or higher!
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# [**Middlewares**](#middlewares)
|
|
11
11
|
|
|
12
12
|
SAP Fiori tools use the capabilities of custom middlewares to start and preview SAP Fiori elements or SAPUI5 freestyle applications, e.g. to enable auto refresh, to switch the version of SAPUI5 sources or to serve static resources. Starting with version `1.3.0` the behaviour of the preview of the SAP Fiori applications has changed. Now the persistent iAppState is ignored in order to have the source code changes always apply when application is refreshed. If you want to enable the iAppState then you need to add the URL parameter `fiori-tools-iapp-state=true` to the browser URL, e.g. `http://localhost:8080/test/flpSandbox.html?fiori-tools-iapp-state=true#masterDetail-display`.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
## [**1. Application Reload**](#1-application-reload)
|
|
15
15
|
|
|
16
16
|
The application reload middleware allows developers to preview SAP Fiori applications while developing/configuring them. Whenever a file relevant for the SAP Fiori application is changed, the reload middleware will refresh the application preview.
|
|
17
17
|
|
|
@@ -50,7 +50,7 @@ Port to be used to communicate file system changes
|
|
|
50
50
|
- `<boolean>` (default: `false`)
|
|
51
51
|
Set this parameter to get more log information.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
## [**2. Proxy**](#2-proxy)
|
|
54
54
|
|
|
55
55
|
The proxy middleware provides you with the capabilities to connect to different back-end systems or to switch the SAPUI5 version of the application. The proxy is based on the [@sap-ux/ui5-proxy-middleware](https://www.npmjs.com/package/@sap-ux/ui5-proxy-middleware) for proxying the UI5 sources (starting with version `1.6.0`) and the [@sap-ux/backend-proxy-middleware](https://www.npmjs.com/package/@sap-ux/backend-proxy-middleware) for connecting to different back-end systems (starting with version `1.6.7`). Both `@sap-ux/ui5-proxy-middleware` and `@sap-ux/backend-proxy-middleware` are based on the [http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware).
|
|
56
56
|
|
|
@@ -157,7 +157,7 @@ Let's that you want to configure the proxy to send requests from a certain path
|
|
|
157
157
|
configuration:
|
|
158
158
|
backend:
|
|
159
159
|
- path: /services/odata
|
|
160
|
-
|
|
160
|
+
pathReplace: /my/entry/path
|
|
161
161
|
url: https://my.backend.com:1234
|
|
162
162
|
destination: my_backend
|
|
163
163
|
```
|
|
@@ -191,12 +191,12 @@ By default, the `fiori-tools-proxy` will verify the SSL certificates and will th
|
|
|
191
191
|
|
|
192
192
|
**Note**: The singular form `ignoreCertError` is also supported for backward compatibility but is deprecated. When using the singular form, a deprecation warning will be displayed encouraging migration to `ignoreCertErrors` (plural).
|
|
193
193
|
#### [Providing Credentials](#providing-credentials)
|
|
194
|
-
|
|
194
|
+
##### Local Testing
|
|
195
195
|
For local testing the logon credentials to a backend system need to be provided using the secure storage of the operating system.
|
|
196
196
|
|
|
197
197
|
Configure the needed connections here: `SAP Fiori -> SAP SYSTEMS`
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
##### CI Scenario
|
|
200
200
|
In the CI scenario the logon credentials to a backend system need to be provided by the two environment variables
|
|
201
201
|
|
|
202
202
|
`FIORI_TOOLS_USER` and `FIORI_TOOLS_PASSWORD`
|
|
@@ -322,12 +322,12 @@ server:
|
|
|
322
322
|
pathReplace: /sap/public/ui5/resources
|
|
323
323
|
```
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
## [**3. Serve Static**](#3-serve-static)
|
|
326
326
|
|
|
327
327
|
The serve static middleware provides the capability to serve any static resources locally from your machine. E.g. you can serve SAPUI5 locally or any other resources.
|
|
328
328
|
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
### [Example Configuration for serving locally SAPUI5](#example-configuration-for-serving-locally-ui5)
|
|
331
331
|
|
|
332
332
|
**Pre-requisites:**
|
|
333
333
|
SAPUI5 SDK version is downloaded and extracted locally on the machine. One can download UI5 resources from <https://tools.hana.ondemand.com/#sapui5>
|
|
@@ -347,7 +347,7 @@ server:
|
|
|
347
347
|
src: "Path/To/SAPUI5-SDK"
|
|
348
348
|
```
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
### [Example Configuration for serving any resources locally](#example-configuration-for-serving-any-resources-locally)
|
|
351
351
|
Executing `npx fiori run` in your project with the configuration below in a `ui5.yaml` file would serve resources from your machine. Any request starting with the `path` parameter will be forwarded to the local path provided in the `src` parameter.
|
|
352
352
|
|
|
353
353
|
```
|
|
@@ -363,7 +363,7 @@ server:
|
|
|
363
363
|
src: "Path/To/libs"
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
|
|
366
|
+
### [Example configuration for mocking the User API Service from @sap/approuter](#example-configuration-for-mocking-the-user-api-service-from-sapapprouter)
|
|
367
367
|
If you are using the [User API Service](https://www.npmjs.com/package/@sap/approuter#user-api-service) from `@sap/approuter` in your application, then you can mock by providing the following configuration.
|
|
368
368
|
|
|
369
369
|
```
|
|
@@ -427,10 +427,10 @@ server:
|
|
|
427
427
|
src: "Path/To/SAPUI5-SDK"
|
|
428
428
|
```
|
|
429
429
|
|
|
430
|
-
|
|
430
|
+
## [**4. Preview**](#4-preview)
|
|
431
431
|
The preview middleware provides the capability to preview an application in a local Fiori launchpad. It hosts a local Fiori launchpad based on your configuration and offers an API to modify flex changes in your project. The middleware is a wrapper for the open source middleware `@sap-ux/preview-middleware` (https://www.npmjs.com/package/@sap-ux/preview-middleware) with a handful of default settings that are useful for the Fiori application development.
|
|
432
432
|
|
|
433
|
-
|
|
433
|
+
### [Configuration Options](#configuration-options-2)
|
|
434
434
|
|
|
435
435
|
The full list of configuration options is described at https://www.npmjs.com/package/@sap-ux/preview-middleware.
|
|
436
436
|
|
|
@@ -445,7 +445,7 @@ The following properties are the most important:
|
|
|
445
445
|
- `debug:` boolean: enables debug output
|
|
446
446
|
|
|
447
447
|
|
|
448
|
-
|
|
448
|
+
### [Minimal configuration](#minimal-configuration)
|
|
449
449
|
With no configuration provided, the local Fiori launchpad will be available at `/test/flp.html` and the log level is info. Additionally, an editor in UI adaptation mode for variant creation will be hosted at `/preview.html`.
|
|
450
450
|
|
|
451
451
|
```yaml
|
|
@@ -454,7 +454,7 @@ With no configuration provided, the local Fiori launchpad will be available at `
|
|
|
454
454
|
afterMiddleware: fiori-tools-appreload
|
|
455
455
|
```
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
### [Configuring path and theme](#configuring-path-and-theme)
|
|
458
458
|
With the following configuration, the local Fiori launchpad will be available at `/test/flpSandbox.html`, the used theme will be SAP Horizon and the log level is debug. Additionally, an editor in UI adaptation mode for variant creation will be hosted at `/preview.html`.
|
|
459
459
|
|
|
460
460
|
```yaml
|
|
@@ -468,7 +468,7 @@ With the following configuration, the local Fiori launchpad will be available at
|
|
|
468
468
|
debug: true
|
|
469
469
|
```
|
|
470
470
|
|
|
471
|
-
|
|
471
|
+
### [Deprecated configuration](#deprecated-configuration)
|
|
472
472
|
The initial version of the middleware allowed setting the theme and required to set an application component. The component is not required anymore and the theme property has move to `flp-theme`, however, for backward compatibility, the following configuration is deprecated but still supported.
|
|
473
473
|
|
|
474
474
|
```yaml
|
|
@@ -493,7 +493,7 @@ This configuration is internally converted to following.
|
|
|
493
493
|
action: app
|
|
494
494
|
theme: sap_fiori_3
|
|
495
495
|
```
|
|
496
|
-
|
|
496
|
+
### [Custom Init](#custom-init)
|
|
497
497
|
|
|
498
498
|
If you want to add custom modifications to the local SAP Fiori Launchpad sandbox file that is served at a virtual endpoint, you can do so by creating a `.js` or `.ts` file (depending on your setup).
|
|
499
499
|
This file can then be used as a custom init in the configuration options. It will be executed after the standard initialization of the middleware.
|
|
@@ -518,11 +518,11 @@ sap.ui.require(['sap/base/i18n/Formatting'], function(Formatting) {
|
|
|
518
518
|
init: /test/myCustomInit
|
|
519
519
|
```
|
|
520
520
|
|
|
521
|
-
|
|
521
|
+
# [**Tasks**](#tasks)
|
|
522
522
|
|
|
523
523
|
SAP Fiori Tools use the capabilities of custom tasks to deploy the SAP Fiori projects to ABAP servers.
|
|
524
524
|
|
|
525
|
-
|
|
525
|
+
## [Deployment to ABAP](#deployment-to-abap)
|
|
526
526
|
|
|
527
527
|
The deployment to ABAP task allows deploying SAP Fiori applications to SAP systems using the [SAPUI5 Repository OData service](https://ui5.sap.com/#/topic/a883327a82ef4cc792f3c1e7b7a48de8.html).
|
|
528
528
|
|
|
@@ -532,7 +532,7 @@ The deployment to ABAP task allows deploying SAP Fiori applications to SAP syste
|
|
|
532
532
|
* Service `/UI5/ABAP_REPOSITORY_SRV` needs to be enabled and accessible from your development environment ([how to check this](https://ui5.sap.com/#/topic/a883327a82ef4cc792f3c1e7b7a48de8))
|
|
533
533
|
* For operations on a SAPUI5 ABAP repository, you need the `S_DEVELOP` authorization.
|
|
534
534
|
|
|
535
|
-
|
|
535
|
+
### Example Configuration
|
|
536
536
|
|
|
537
537
|
Executing the command `npm run deploy` from the root of your project, using the `ui5-deploy.yaml` configuration below, will deploy all files of your `dist` folder except files found in the `test` folder. The `username` and `password` for authentication will be read from the environment variables `XYZ_USER` and `XYZ_PASSWORD`, continue reading to see more examples of how to configure credentials.
|
|
538
538
|
|
|
@@ -575,7 +575,7 @@ XYZ_USER=[MY_USER_NAME]
|
|
|
575
575
|
XYZ_PASSWORD=[MY_PASSWORD]
|
|
576
576
|
```
|
|
577
577
|
|
|
578
|
-
|
|
578
|
+
### Command to deploy
|
|
579
579
|
|
|
580
580
|
After completing the changes in the configuration files, execute the command `npm run deploy`.
|
|
581
581
|
|
|
@@ -605,102 +605,105 @@ builder:
|
|
|
605
605
|
|
|
606
606
|
Based on the sample configurations above, after deploying the app, you can access the app using URL: <https://XYZ.sap-system.corp:44311/sap/bc/ui5-ui5/test/sample_app/index.html?sap-client=200#app-preview>
|
|
607
607
|
|
|
608
|
-
|
|
608
|
+
### Documentation on the Configuration options
|
|
609
609
|
|
|
610
610
|
In addition to defining parameters in the main yaml file, every parameter can also be defined as environment variable that is referenced in yaml. Using the `dotenv` module, the task also supports project specific environment variables defined in a `.env` file in the root of your project. To reference an environment variable the pattern `env:VAR_NAME` must be used.
|
|
611
611
|
|
|
612
|
-
|
|
612
|
+
#### target
|
|
613
613
|
|
|
614
614
|
The target object contains properties identifying your target SAP system.
|
|
615
615
|
|
|
616
|
-
|
|
616
|
+
##### url
|
|
617
617
|
|
|
618
618
|
- `<string> pattern <protocol>://<hostname>[:<port>]` (required)
|
|
619
619
|
- This parameter must contain a url pointing to your target SAP system
|
|
620
620
|
|
|
621
|
-
|
|
621
|
+
##### client
|
|
622
622
|
|
|
623
623
|
- `<number> range [0..999]` (optional)
|
|
624
624
|
- The client property is used to identify the SAP client that is to be used in the backend system. It translates to the url parameter `sap-client=<client>` If the client parameter is not provide, the default client will be used.
|
|
625
625
|
|
|
626
|
-
|
|
626
|
+
##### scp
|
|
627
627
|
|
|
628
628
|
- `<boolean>` (default: `false`)
|
|
629
629
|
- By default, the deployment task will use basic authentication when connecting to the backend. If the target system is ABAP Environment on SAP Business Technology Platform, this parameter needs to be set to `true`.
|
|
630
630
|
|
|
631
|
-
|
|
631
|
+
##### service
|
|
632
632
|
|
|
633
633
|
- `<string>` (default: `/sap/opu/odata/UI5/ABAP_REPOSITORY_SRV`)
|
|
634
634
|
- Path pointing to the SAPUI5 ABAP repository OData service in your target system. This parameter only needs to be used if the service is exposed at a different path in your backend system e.g. via alias.
|
|
635
635
|
|
|
636
|
-
|
|
636
|
+
#### credentials (optional)
|
|
637
637
|
|
|
638
638
|
The credentials object is mainly required for CI/CD based deployments and it needs to contain the required parameters to authenticate at your target system. It is only possible to use references to environment variables e.g. `env:MY_VARIABLE` here, plain username and password are not supported.
|
|
639
639
|
|
|
640
640
|
For local usage, we recommend to not use the credentials object at all. As result, the deployment task will utilize the operating systems secure storage maintain credentials.
|
|
641
641
|
|
|
642
|
-
|
|
642
|
+
##### username
|
|
643
643
|
|
|
644
644
|
- `<string>` (required)
|
|
645
645
|
- SAP business user for the target system. The user requires authorizations to create/update the target ABAP development object.
|
|
646
646
|
|
|
647
|
-
|
|
647
|
+
##### password
|
|
648
648
|
|
|
649
649
|
- `<string>` (required)
|
|
650
650
|
- Password required to authenticate the previously configured user. IMPORTANT: while technically possible to add the password to your config, we strongly DISCOURAGE that but recommend instead the use of environment variables.
|
|
651
651
|
|
|
652
|
-
|
|
652
|
+
##### authenticationType
|
|
653
653
|
- `<string>` (optional)
|
|
654
654
|
- Authentication type for the app (e.g. 'basic', 'reentranceTicket'). IMPORTANT: It is required for authentication with reentrance tickets.
|
|
655
655
|
|
|
656
|
-
|
|
656
|
+
#### app
|
|
657
657
|
|
|
658
658
|
The app object describes the backend object that is created/updated as result of the deployment.
|
|
659
659
|
|
|
660
|
-
|
|
660
|
+
##### name
|
|
661
661
|
|
|
662
662
|
- `<string>` (required)
|
|
663
663
|
- Unique name of the application. The name is used as part of the application url as well as the name of the ABAP development object used as container for the app.
|
|
664
664
|
|
|
665
|
-
|
|
665
|
+
##### package
|
|
666
666
|
|
|
667
667
|
- `<string>` (required for new apps)
|
|
668
668
|
- Name of an existing ABAP package that is used as parent of the deployed application. The parameter is required for the creation of the application in the backend. Any following deployment updating the application does not require the package parameter, i.e. it will be ignored.
|
|
669
669
|
|
|
670
|
-
|
|
670
|
+
##### transport
|
|
671
671
|
|
|
672
672
|
- `<string>` (optional)
|
|
673
673
|
- The transport parameter refers to a transport request number that is to be used to record changes to the backend application object. The property is optional because it is only required if the package that is used for deployments requires transport requests.
|
|
674
674
|
- To dynamically create a Transport Request during the deployment or undeployment task, use the value `REPLACE_WITH_TRANSPORT`.
|
|
675
675
|
|
|
676
|
-
|
|
676
|
+
##### description
|
|
677
677
|
|
|
678
678
|
- `<string>` (optional)
|
|
679
679
|
- Optional description added to the created application object in the backend.
|
|
680
680
|
|
|
681
|
-
|
|
681
|
+
#### exclude
|
|
682
682
|
|
|
683
683
|
- `<string[] array of regex>` (optional)
|
|
684
684
|
- By default, the deployment task will create an archive (zip file) of all build files and send it to the backend. By using `exclude`, you can define expressions to match files that shall not be included into the deployment. Note: `string.match()` is used to evaluate the expressions.
|
|
685
685
|
|
|
686
|
-
|
|
686
|
+
#### index
|
|
687
687
|
|
|
688
688
|
- `boolean` (default: `false`)
|
|
689
689
|
- If set to `true`, then an additional index.html will be generated and deployed to run the application standalone.
|
|
690
690
|
|
|
691
|
-
|
|
691
|
+
#### test
|
|
692
692
|
|
|
693
693
|
- `boolean` (default: `false`)
|
|
694
694
|
- If set to `true`, the task will run through all steps including sending the archive to the SAP backend. The backend will not deploy the app but run the pre-deployment checklist and return the result.
|
|
695
695
|
|
|
696
|
-
|
|
696
|
+
#### verbose
|
|
697
697
|
|
|
698
698
|
- `boolean` (default: `false`)
|
|
699
699
|
- If set to `true`, the task will log additional information about the deployment process. This is useful for debugging purposes.
|
|
700
700
|
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
701
|
+
# [CLI Commands](#commands)
|
|
702
|
+
|
|
703
|
+
The cli `fiori` offering provides the [`fiori run`](#run) command which is a wrapper of the `ui5 serve` command and provides some additional parameters as well as `fiori add deploy-config` and `fiori add flp-config` to extend an existing project and `fiori deploy` to perform the deployment of the application to an ABAP frontend server.
|
|
704
|
+
|
|
705
|
+
## [fiori run](#fiori-run---starts-a-local-web-server-for-running-a-fe-application)
|
|
706
|
+
### Options
|
|
704
707
|
|
|
705
708
|
* `--config, c` - Path to config file (default: `ui5.yaml` in root folder of the project).
|
|
706
709
|
* `--verbose` - Enable verbose logging (default: `false`).
|
|
@@ -713,14 +716,14 @@ The app object describes the backend object that is created/updated as result of
|
|
|
713
716
|
* `--ui5Uri` - UI5 uri to load the UI5 resources from (default: uri from `ui5.yaml`).
|
|
714
717
|
* `--proxy` - specify proxy configuration, e.g. `https://myproxy:8443` (default: uses host machine proxy configuration, if any).
|
|
715
718
|
|
|
716
|
-
|
|
719
|
+
## [fiori add deploy-config](#fiori-add-deploy-config---adds-a-deployment-configuration-to-the-project)
|
|
717
720
|
|
|
718
721
|
The command allows adding a deployment configuration to the project. The command supports the generation of a configuration for deployment to an ABAP system or to a Cloud Foundry space.
|
|
719
722
|
|
|
720
|
-
|
|
723
|
+
### Deployment to ABAP
|
|
721
724
|
If `ABAP` is chosen as target then the CLI will prompt the required information to generate a `ui5-deploy.yaml` required for the `deploy-to-abap` task.
|
|
722
725
|
|
|
723
|
-
|
|
726
|
+
### Deployment to Cloud Foundry (CF)
|
|
724
727
|
For the deployment to CF, an MTA configuration will be created. The command allows to create a new configuration i.e. a new `mta.yaml` file or updates an existing `mta.yaml` with the information required for deployment. After successfully creating the configuration, running `npm run build` in the MTA directory that contains the application will try to build a deployable mtar file that can then be deployed to CF with `npm run deploy`.
|
|
725
728
|
|
|
726
729
|
**Pre-requisites:**
|
|
@@ -732,7 +735,7 @@ Use `npm i -g mta` to install globally
|
|
|
732
735
|
* A correctly configured destination to the backend system
|
|
733
736
|
* User authorization on CF to deploy
|
|
734
737
|
|
|
735
|
-
|
|
738
|
+
### Artifacts & Configuration
|
|
736
739
|
|
|
737
740
|
A Cloud Foundry MTA project structure is created in the current directory. The following files are generated or updated:
|
|
738
741
|
```
|
|
@@ -752,25 +755,27 @@ mta_directory
|
|
|
752
755
|
|_ ui5-deploy.yaml
|
|
753
756
|
```
|
|
754
757
|
|
|
755
|
-
|
|
756
|
-
|
|
758
|
+
### Information required to generate the configuration
|
|
759
|
+
#### Location of MTA Directory
|
|
757
760
|
The tool finds the nearest parent directory that contains a `mta.yaml` and offers that as the MTA directory. Failing that, it defaults to the parent directory of the application.
|
|
758
761
|
|
|
759
|
-
|
|
762
|
+
#### Destination
|
|
760
763
|
Destination configured to connect to the backend on Cloud Foundry. If there's a setting in `ui5.yaml`, that value is offered as the default.
|
|
761
764
|
|
|
762
|
-
|
|
765
|
+
#### Prefix
|
|
763
766
|
Prefix used for the ID of the MTA and the service names. It defaults to the namespace of the app. If a namespace is not found, it defaults to `test`. Please choose a prefix so that the service names are unique to your MTA. Otherwise deployment by multiple people will overwrite the same service.
|
|
764
767
|
|
|
765
768
|
At the end of the generation, it's possible to optionally generate SAP Fiori launchpad configuration (default: no).
|
|
766
769
|
|
|
767
|
-
|
|
770
|
+
## [fiori add flp-config](#fiori-add-flp-config---fiori-launchpad-configuration-generation)
|
|
771
|
+
|
|
768
772
|
It's possible to create configuration and artifacts required to run the application in an SAP Fiori launchpad. Depending on the target, the command will update either only the application `manifest.json` with the required inbound navigation property, or will also enhance the MTA configuration to contain a standalone FLP on CF.
|
|
769
773
|
|
|
770
|
-
|
|
771
|
-
|
|
774
|
+
## [fiori deploy](#fiori-deploy---performs-the-deployment-of-the-application-into-an-abap-system)
|
|
775
|
+
|
|
776
|
+
The command performs the deployment of the application to an ABAP frontend server.
|
|
772
777
|
|
|
773
|
-
|
|
778
|
+
### Options
|
|
774
779
|
|
|
775
780
|
* `--config, -c` - Path to config file (default: `ui5-deploy.yaml` in root folder of the project).
|
|
776
781
|
* `--noConfig, -nc` - Only CLI arguments will be used, no config file is read.
|
|
@@ -793,7 +798,7 @@ Deploys an application to an ABAP frontend server.
|
|
|
793
798
|
* `--ignore-cert-error, -ic` - Deprecated. Use `ignoreCertErrors` (plural) instead.
|
|
794
799
|
* `--ignore-cert-errors, -ics` - Disabled by default. If set to `true`, the task will not validate the SSL certificate of the target system. This is useful for development purposes but must not be used in production environments.
|
|
795
800
|
|
|
796
|
-
|
|
801
|
+
# [FAQ](#faq)
|
|
797
802
|
|
|
798
803
|
**My backend system contains the SAP_UI component version 7.53 or newer, but the SAPUI5 repository service cannot be reached.**
|
|
799
804
|
|
|
@@ -807,18 +812,18 @@ This could have multiple reasons, please check the console for more information
|
|
|
807
812
|
|
|
808
813
|
Most probably the `OpenSSL` package is not installed on your OS. Please install it and make sure that it is available in your `PATH` environment variable.
|
|
809
814
|
|
|
810
|
-
|
|
815
|
+
# [Support](#support)
|
|
811
816
|
|
|
812
817
|
Join the [SAP Fiori Tools Community](https://pages.community.sap.com/topics/fiori-tools). Ask Questions, Read the Latest Blogs, Explore Content.
|
|
813
818
|
Please assign tag: _SAP Fiori tools_.
|
|
814
819
|
|
|
815
820
|
To log an issue with SAP Fiori Tools, please see [Contact SAP Support](https://help.sap.com/viewer/1bb01966b27a429ebf62fa2e45354fea/Latest/en-US).
|
|
816
821
|
|
|
817
|
-
|
|
822
|
+
# [Documentation](#documentation)
|
|
818
823
|
|
|
819
824
|
- Visit **SAP Help Portal** for [SAP Fiori Tools](https://help.sap.com/viewer/product/SAP_FIORI_tools/Latest/en-US) documentation.
|
|
820
825
|
|
|
821
|
-
|
|
826
|
+
# [License](#license)
|
|
822
827
|
|
|
823
828
|
<details>
|
|
824
829
|
<summary>SAP DEVELOPER LICENSE AGREEMENT</summary>
|