@sap/ux-ui5-tooling 1.5.4 → 1.6.1
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 +8 -0
- package/README.md +38 -4
- package/dist/cli/index.js +370 -3941
- package/dist/middlewares/fiori-tools-appreload.js +17 -44
- package/dist/middlewares/fiori-tools-preview.js +369 -3930
- package/dist/middlewares/fiori-tools-proxy.js +17711 -8621
- package/dist/middlewares/fiori-tools-servestatic.js +30 -50
- package/dist/tasks/cf-deploy/index.js +304 -3905
- package/dist/tasks/deploy/index.js +365 -3925
- package/dist/templates/control-property-editor/app.js +1 -1
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -1
- package/dist/templates/control-property-editor/vendor.js +1 -1
- package/package.json +15 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.6.0] - 2022-05-05
|
|
6
|
+
### Changed
|
|
7
|
+
- The `fiori-tools-proxy` is now using the [@sap-ux/ui5-proxy-middleware](https://www.npmjs.com/package/@sap-ux/ui5-proxy-middleware) for proxying the UI5 sources
|
|
8
|
+
|
|
9
|
+
## [1.5.5] - 2022-04-21
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fixed an issue with the `fiori-tools-servestatic` middleware not serving files starting with a dot
|
|
12
|
+
|
|
5
13
|
## [1.5.4] - 2022-04-07
|
|
6
14
|
### Fixed
|
|
7
15
|
- Fixed an issue with escaping runtime arguments on Windows with Node.js version 16
|
package/README.md
CHANGED
|
@@ -204,6 +204,21 @@ By using the `version` parameter one can choose the SAPUI5 version which will us
|
|
|
204
204
|
directLoad: true
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
+
Starting with version `1.6.0` one can use the following syntax for proxying different UI5 requests to different URLs, e.g.
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
- name: fiori-tools-proxy
|
|
211
|
+
afterMiddleware: compression
|
|
212
|
+
configuration:
|
|
213
|
+
ui5:
|
|
214
|
+
paths:
|
|
215
|
+
- path: /resources
|
|
216
|
+
url: https://ui5.sap.com
|
|
217
|
+
- path: /test-resources
|
|
218
|
+
src: https://sapui5.hana.ondemand.com
|
|
219
|
+
version: '1.100.1'
|
|
220
|
+
```
|
|
221
|
+
|
|
207
222
|
### [**3. Serve Static**](#3-serve-static)
|
|
208
223
|
|
|
209
224
|
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.
|
|
@@ -245,9 +260,10 @@ server:
|
|
|
245
260
|
src: "Path/To/libs"
|
|
246
261
|
```
|
|
247
262
|
|
|
248
|
-
### Configuration options
|
|
263
|
+
### [Configuration options](#configuration-options-1)
|
|
264
|
+
Additionaly you can specify any of the configuration options (excluding `setHeaders`!) of the [serve-static](https://www.npmjs.com/package/serve-static) middleware.
|
|
249
265
|
|
|
250
|
-
|
|
266
|
+
E.g. you can set `fallthrough: false`, which will cause the middleware to return 404 error, when it can't find a file on the local system:
|
|
251
267
|
|
|
252
268
|
```
|
|
253
269
|
server:
|
|
@@ -256,9 +272,27 @@ server:
|
|
|
256
272
|
afterMiddleware: compression
|
|
257
273
|
configuration:
|
|
258
274
|
paths:
|
|
259
|
-
- path: /
|
|
260
|
-
src: "Path/To/
|
|
275
|
+
- path: /resources
|
|
276
|
+
src: "Path/To/SAPUI5-SDK"
|
|
277
|
+
- path: /test-resources
|
|
278
|
+
src: "Path/To/SAPUI5-SDK"
|
|
279
|
+
fallthrough: false
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Alternatively you can set e.g. `fallthrough: false` only for specific requests:
|
|
283
|
+
|
|
284
|
+
```
|
|
285
|
+
server:
|
|
286
|
+
customMiddleware:
|
|
287
|
+
- name: fiori-tools-servestatic
|
|
288
|
+
afterMiddleware: compression
|
|
289
|
+
configuration:
|
|
290
|
+
paths:
|
|
291
|
+
- path: /resources
|
|
292
|
+
src: "Path/To/SAPUI5-SDK"
|
|
261
293
|
fallthrough: false
|
|
294
|
+
- path: /test-resources
|
|
295
|
+
src: "Path/To/SAPUI5-SDK"
|
|
262
296
|
```
|
|
263
297
|
|
|
264
298
|
### [**4. Preview**](#4-preview)
|