@sap/ux-ui5-tooling 1.3.0 → 1.3.5
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 +18 -0
- package/README.md +27 -13
- package/dist/cli/index.js +94175 -64975
- package/dist/markdowns/add/add.en.md +37 -0
- package/dist/markdowns/cfDeploy/cfDeploy.en.md +9 -0
- package/dist/markdowns/deploy/deploy.en.md +27 -0
- package/dist/markdowns/index/index.en.md +21 -0
- package/dist/markdowns/run/run.en.md +24 -0
- package/dist/markdowns/undeploy/undeploy.en.md +19 -0
- package/dist/middlewares/fiori-tools-appreload.js +541 -549
- package/dist/middlewares/fiori-tools-preview.js +44270 -43169
- package/dist/middlewares/fiori-tools-proxy.js +58097 -56752
- package/dist/middlewares/fiori-tools-servestatic.js +10 -22
- package/dist/tasks/cf-deploy/index.js +81550 -0
- package/dist/tasks/deploy/index.js +66294 -49068
- package/dist/templates/control-property-editor/app.js +1 -0
- package/dist/templates/control-property-editor/editor.html +22 -0
- package/dist/templates/control-property-editor/favicon.ico +0 -0
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -0
- package/dist/templates/control-property-editor/vendor.js +2 -0
- package/dist/templates/control-property-editor/vendor.js.LICENSE.txt +56 -0
- package/dist/templates/variants-management/WorkspaceConnector.js +23 -4
- package/dist/templates/variants-management/preview.html +18 -19
- package/package.json +29 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
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
|
+
## [1.3.5] - 2021-09-23
|
|
6
|
+
### Added
|
|
7
|
+
- Added help options for SAP Fiori tools CLI. Typing `npx fiori help` will give the list of commands that the command line tools support. Help text for individual `fiori` commands can also be displayed, e.g. `npx fiori add help`.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Stability fixes
|
|
11
|
+
|
|
12
|
+
## [1.3.3] - 2021-09-09
|
|
13
|
+
### Added
|
|
14
|
+
- Added instructions for users on how to retrieve the URL of a deployed application on Cloud foundry
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Fixed Regex for injecting the UI5 URL into the application's HTML file
|
|
18
|
+
|
|
19
|
+
## [1.3.1] - 2021-08-12
|
|
20
|
+
### Fixed
|
|
21
|
+
- Fixed minor issues
|
|
22
|
+
|
|
5
23
|
## [1.3.0] - 2021-07-29
|
|
6
24
|
### Added
|
|
7
25
|
- Provided the possibility to load UI5 libs directly from CDN, instead of loading via the fiori-tools-proxy
|
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@ Furthermore, the module expose the cli `fiori` offering e.g. the [`fiori run`](#
|
|
|
5
5
|
|
|
6
6
|
## [**Middlewares**](#middlewares)
|
|
7
7
|
|
|
8
|
-
SAP Fiori tools use the capabilities of custom middlewares to start and preview Fiori elements applications, e.g. to enable auto refresh, to switch the version of
|
|
8
|
+
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`.
|
|
9
9
|
|
|
10
10
|
### [**1. Application Reload**](#1-application-reload)
|
|
11
11
|
|
|
12
|
-
The application reload middleware allows developers to preview Fiori
|
|
12
|
+
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.
|
|
13
13
|
|
|
14
14
|
#### Example Configuration
|
|
15
15
|
|
|
@@ -24,12 +24,12 @@ server:
|
|
|
24
24
|
|
|
25
25
|
#### Configuration options
|
|
26
26
|
|
|
27
|
-
The application reload middleware does not require any configuration parameters. However, there are optional parameters that can be used if the project structure differs from standard Fiori
|
|
27
|
+
The application reload middleware does not require any configuration parameters. However, there are optional parameters that can be used if the project structure differs from standard SAP Fiori projects.
|
|
28
28
|
|
|
29
29
|
#### path
|
|
30
30
|
|
|
31
31
|
- `<string>` (default: `webapp`)
|
|
32
|
-
Path that is to be watched. By default the standard
|
|
32
|
+
Path that is to be watched. By default the standard SAPUI5 `webapp` folder is used
|
|
33
33
|
|
|
34
34
|
#### ext
|
|
35
35
|
|
|
@@ -48,7 +48,7 @@ Set this parameter to get more log information.
|
|
|
48
48
|
|
|
49
49
|
### [**2. Proxy**](#2-proxy)
|
|
50
50
|
|
|
51
|
-
The proxy middleware provides you with the capabilities to connect to diffent back-end systems or to switch the
|
|
51
|
+
The proxy middleware provides you with the capabilities to connect to diffent back-end systems or to switch the SAPUI5 version of the application. The proxy is based on the [http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware).
|
|
52
52
|
|
|
53
53
|
### Configuration Examples
|
|
54
54
|
|
|
@@ -157,9 +157,23 @@ Let's that you want to configure the proxy to send requests from a certain path
|
|
|
157
157
|
destination: my_backend
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
+
#### [Providing Proxy Configuration](#providing-proxy-configuration)
|
|
161
|
+
By the default the `fiori-tools-proxy` will read the proxy configuration from the Node.js environment variables `proxy`, `https-proxy` and `noproxy`. If those variables are not set, then you can also provide the proxy configuration in the `ui5.yaml` file. **Please note: if you want to exclude any domains from the proxy then you will need to set the `noproxy` variable, e.g. `npm config set noproxy "sap.com"`**.
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
- name: fiori-tools-proxy
|
|
165
|
+
afterMiddleware: compression
|
|
166
|
+
configuration:
|
|
167
|
+
proxy: https://myproxy.com:8443
|
|
168
|
+
backend:
|
|
169
|
+
- path: /sap
|
|
170
|
+
url: https://my.backend.com:1234
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
|
|
160
174
|
#### [UI5](#ui5)
|
|
161
175
|
|
|
162
|
-
By using the proxy configuration one can also change the
|
|
176
|
+
By using the proxy configuration one can also change the SAPUI5 version, which is used to preview the application. With the application generation also the initial ui5 configuration for the proxy is created. It looks e.g. like this.
|
|
163
177
|
|
|
164
178
|
```
|
|
165
179
|
- name: fiori-tools-proxy
|
|
@@ -173,7 +187,7 @@ By using the proxy configuration one can also change the UI5 version, which is u
|
|
|
173
187
|
version: 1.78.0
|
|
174
188
|
```
|
|
175
189
|
|
|
176
|
-
By using the `version` parameter one can choose the
|
|
190
|
+
By using the `version` parameter one can choose the SAPUI5 version which will used when `npx fiori run` is executed.
|
|
177
191
|
|
|
178
192
|
**Note:** all UI5 requests are routed through the proxy. Sometimes this can cause performance issues. If you don't want route the UI5 requests through the proxy, then you can set parameter `directLoad: true`. This will inject the UI5 url in the HTML file of the application and thus the UI5 libs will be loaded directly.
|
|
179
193
|
|
|
@@ -192,10 +206,10 @@ By using the `version` parameter one can choose the UI5 version which will used
|
|
|
192
206
|
|
|
193
207
|
### [**3. Serve Static**](#3-serve-static)
|
|
194
208
|
|
|
195
|
-
The serve static middleware provides the capability to serve any static resources locally from your machine. E.g. you can serve
|
|
209
|
+
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.
|
|
196
210
|
|
|
197
211
|
|
|
198
|
-
#### [Example Configuration for serving locally
|
|
212
|
+
#### [Example Configuration for serving locally SAPUI5](#example-configuration-for-serving-locally-ui5)
|
|
199
213
|
|
|
200
214
|
**Pre-requisites:**
|
|
201
215
|
SAPUI5 SDK version is downloaded and extracted locally on the machine. One can download UI5 resources from <https://tools.hana.ondemand.com/#sapui5>
|
|
@@ -249,11 +263,11 @@ server:
|
|
|
249
263
|
|
|
250
264
|
## [**Tasks**](#tasks)
|
|
251
265
|
|
|
252
|
-
SAP Fiori tools use the capabilities of custom tasks to deploy the Fiori
|
|
266
|
+
SAP Fiori tools use the capabilities of custom tasks to deploy the SAP Fiori projects to ABAP servers.
|
|
253
267
|
|
|
254
268
|
### [Deployment to ABAP](#deployment-to-abap)
|
|
255
269
|
|
|
256
|
-
The deployment to ABAP task allows deploying Fiori applications to SAP systems using the [SAPUI5 Repository OData service](https://sapui5.hana.ondemand.com/#/topic/a883327a82ef4cc792f3c1e7b7a48de8.html).
|
|
270
|
+
The deployment to ABAP task allows deploying SAP Fiori applications to SAP systems using the [SAPUI5 Repository OData service](https://sapui5.hana.ondemand.com/#/topic/a883327a82ef4cc792f3c1e7b7a48de8.html).
|
|
257
271
|
|
|
258
272
|
**Pre-requisites:**
|
|
259
273
|
|
|
@@ -465,10 +479,10 @@ Destination configured to connect to the backend on Cloud Foundry. If there's a
|
|
|
465
479
|
##### Prefix
|
|
466
480
|
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.
|
|
467
481
|
|
|
468
|
-
At the end of the generation, it's possible to optionally generate Fiori
|
|
482
|
+
At the end of the generation, it's possible to optionally generate SAP Fiori launchpad configuration (default: no).
|
|
469
483
|
|
|
470
484
|
### [fiori add flp-config](#fiori-add-flp-config---fiori-launchpad-configuration-generation) - Fiori Launchpad configuration generation
|
|
471
|
-
It's possible to create configuration and artifacts required to run the application in an SAP Fiori
|
|
485
|
+
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.
|
|
472
486
|
|
|
473
487
|
### [fiori deploy](#fiori-deploy---performs-the-deployment-of-the-application-into-an-abap-system) - performs the deployment of the application into an ABAP system
|
|
474
488
|
Deploys an application to an ABAP frontend server.
|