Skip to content

Commit 1bfbda7

Browse files
RandomByteflovogt
authored andcommitted
[DEMO] UI5 CLI: Use new 'component' type
- Implementation: UI5/cli#1182 - Migration Guide: https://ui5.github.io/cli/next/updates/migrate-v5 - Technical documentation: https://github.com/UI5/cli/blob/main/rfcs/0018-component-type.md
1 parent 1b56b9c commit 1bfbda7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2133
-1113
lines changed

demo/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ dist/
33
.DS_Store
44
coverage/
55
.nyc_output/
6-
report/
6+
report/
7+
.ui5-cache/

demo/BaseComponent/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
],
2323
"devDependencies": {
2424
"eslint": "^9.25.0",
25-
"@ui5/cli": "^4.0.14",
25+
"@ui5/cli": "^5.0.0-alpha.1",
2626
"local-web-server": "^5.4.0",
2727
"rimraf": "^6.0.1"
2828
},
2929
"engines": {
30-
"node": "^16.18.0 || >=18.12.0",
30+
"node": "^22.20.0 || >=24.0.0",
3131
"npm": ">= 8"
3232
},
3333
"author": "Jiawei Cao, Florian Vogt",
File renamed without changes.
File renamed without changes.

demo/BaseComponent/src/my/lib/sample/base/manifest.json renamed to demo/BaseComponent/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"_version": "2.0.0",
33
"sap.app": {
44
"id": "my.lib.sample.base",
5-
"type": "library",
5+
"type": "component",
66
"embeds": [],
77
"applicationVersion": {
88
"version": "${version}"

demo/BaseComponent/src/my/lib/sample/base/library.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

demo/BaseComponent/ui5.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
specVersion: "2.6"
1+
specVersion: "5.0"
22
metadata:
33
name: my.lib.sample.base
4-
type: library
4+
type: component
55
framework:
66
name: OpenUI5
77
version: 1.136.9
88
libraries:
99
- name: sap.ui.core
10-
builder:
11-
componentPreload:
12-
namespaces:
13-
- "my/lib/sample/base"

demo/CategoriesComponent/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
},
2929
"devDependencies": {
3030
"eslint": "^9.25.0",
31-
"@ui5/cli": "^4.0.14",
31+
"@ui5/cli": "^5.0.0-alpha.1",
3232
"local-web-server": "^5.4.0",
3333
"rimraf": "^6.0.1"
3434
},
3535
"engines": {
36-
"node": "^16.18.0 || >=18.12.0",
36+
"node": "^22.20.0 || >=24.0.0",
3737
"npm": ">= 8"
3838
},
3939
"author": "Jiawei Cao, Florian Vogt",

demo/CategoriesComponent/src/my/lib/sample/categories/Component.js renamed to demo/CategoriesComponent/src/Component.js

File renamed without changes.

demo/CategoriesComponent/src/my/lib/sample/categories/controller/App.controller.js renamed to demo/CategoriesComponent/src/controller/App.controller.js

File renamed without changes.

0 commit comments

Comments
 (0)