@ui5/webcomponents-tools 2.3.0-rc.2 → 2.3.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 +19 -0
- package/components-package/cypress.config.js +0 -2
- package/components-package/nps.js +10 -4
- package/lib/dev-server/{dev-server.js → dev-server.mjs} +4 -4
- package/lib/i18n/defaults.js +1 -1
- package/package.json +4 -4
- package/tsconfig.json +1 -1
- package/lib/dev-server/ssr-dom-shim-loader.js +0 -26
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,25 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [2.3.0](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.3...v2.3.0) (2024-10-02)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
# [2.3.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.2...v2.3.0-rc.3) (2024-09-26)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* nps.js works with the JS flow ([#9942](https://github.com/SAP/ui5-webcomponents/issues/9942)) ([b42ef95](https://github.com/SAP/ui5-webcomponents/commit/b42ef9567bcbd187a5f8d183e7d5014492ee845a))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
# [2.3.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.3.0-rc.1...v2.3.0-rc.2) (2024-09-19)
|
7
26
|
|
8
27
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
@@ -1,6 +1,5 @@
|
|
1
1
|
const { defineConfig } = require('cypress')
|
2
2
|
const path = require("path");
|
3
|
-
const rootConfig = require("../../../vite.config.js");
|
4
3
|
|
5
4
|
module.exports = defineConfig({
|
6
5
|
component: {
|
@@ -10,7 +9,6 @@ module.exports = defineConfig({
|
|
10
9
|
devServer: {
|
11
10
|
framework: 'cypress-ct-lit',
|
12
11
|
bundler: 'vite',
|
13
|
-
viteConfig: rootConfig,
|
14
12
|
}
|
15
13
|
},
|
16
14
|
video: false,
|
@@ -68,7 +68,7 @@ const getScripts = (options) => {
|
|
68
68
|
styleRelated: "nps build.styles build.jsonImports build.jsImports",
|
69
69
|
},
|
70
70
|
prepare: {
|
71
|
-
default: `${tsCrossEnv} nps clean prepare.all copyProps prepare.typescript generateAPI`,
|
71
|
+
default: `${tsCrossEnv} nps clean prepare.all ${options.legacy ? "copy" : ""} copyProps prepare.typescript generateAPI`,
|
72
72
|
all: 'concurrently "nps build.templates" "nps build.i18n" "nps prepare.styleRelated" "nps build.illustrations"',
|
73
73
|
styleRelated: "nps build.styles build.jsonImports build.jsImports",
|
74
74
|
typescript: tsCommandOld,
|
@@ -100,12 +100,18 @@ const getScripts = (options) => {
|
|
100
100
|
illustrations: createIllustrationsJSImportsScript,
|
101
101
|
},
|
102
102
|
copyProps: `node "${LIB}/copy-and-watch/index.js" --silent "src/i18n/*.properties" dist/`,
|
103
|
+
copy: {
|
104
|
+
default: "nps copy.src copy.props",
|
105
|
+
src: `node "${LIB}/copy-and-watch/index.js" --silent "src/**/*.{js,json}" dist/`,
|
106
|
+
props: `node "${LIB}/copy-and-watch/index.js" --silent "src/i18n/*.properties" dist/`,
|
107
|
+
},
|
103
108
|
watch: {
|
104
|
-
default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.typescript" "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
|
109
|
+
default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.typescript" ${options.legacy ? '"nps watch.src"' : ""} "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
|
105
110
|
devServer: 'concurrently "nps watch.default" "nps watch.bundle"',
|
111
|
+
src: 'nps "copy.src --watch --safe --skip-initial-copy"',
|
106
112
|
typescript: tsWatchCommandStandalone,
|
107
113
|
props: 'nps "copyProps --watch --safe --skip-initial-copy"',
|
108
|
-
bundle: `node ${LIB}/dev-server/dev-server.
|
114
|
+
bundle: `node ${LIB}/dev-server/dev-server.mjs ${viteConfig}`,
|
109
115
|
styles: {
|
110
116
|
default: 'concurrently "nps watch.styles.themes" "nps watch.styles.components"',
|
111
117
|
themes: 'nps "build.styles.themes -w"',
|
@@ -132,7 +138,7 @@ const getScripts = (options) => {
|
|
132
138
|
},
|
133
139
|
watchWithBundle: 'concurrently "nps scope.watch" "nps scope.bundle" ',
|
134
140
|
watch: 'concurrently "nps watch.templates" "nps watch.props" "nps watch.styles"',
|
135
|
-
bundle: `node ${LIB}/dev-server/dev-server.
|
141
|
+
bundle: `node ${LIB}/dev-server/dev-server.mjs ${viteConfig}`,
|
136
142
|
},
|
137
143
|
generateAPI: {
|
138
144
|
default: tsOption ? "nps generateAPI.generateCEM generateAPI.validateCEM" : "",
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import fs from "fs/promises";
|
2
|
+
import { createServer } from 'vite';
|
3
|
+
import yargs from 'yargs/yargs';
|
4
|
+
import { hideBin } from 'yargs/helpers';
|
5
5
|
|
6
6
|
const argv = yargs(hideBin(process.argv))
|
7
7
|
.alias("c", "config")
|
package/lib/i18n/defaults.js
CHANGED
@@ -69,7 +69,7 @@ const generate = async () => {
|
|
69
69
|
const texts = textKeys.map(prop => getTextInfo(prop, properties[prop], defaultLanguageProperties && defaultLanguageProperties[prop])).join('');
|
70
70
|
|
71
71
|
// tabs are intentionally mixed to have proper identation in the produced file
|
72
|
-
return `${tsMode ? `import { I18nText } from "@ui5/webcomponents-base/dist/i18nBundle.js";` : ""}
|
72
|
+
return `${tsMode ? `import type { I18nText } from "@ui5/webcomponents-base/dist/i18nBundle.js";` : ""}
|
73
73
|
${texts}
|
74
74
|
export {${textKeys.join()}};`;
|
75
75
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "2.3.0
|
3
|
+
"version": "2.3.0",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -68,12 +68,12 @@
|
|
68
68
|
"resolve": "^1.20.0",
|
69
69
|
"rimraf": "^3.0.2",
|
70
70
|
"slash": "3.0.0",
|
71
|
-
"vite": "^
|
71
|
+
"vite": "^5.4.8",
|
72
72
|
"wdio-chromedriver-service": "^7.3.2"
|
73
73
|
},
|
74
74
|
"peerDependencies": {
|
75
75
|
"chromedriver": "*",
|
76
|
-
"typescript": "^5.
|
76
|
+
"typescript": "^5.6.2"
|
77
77
|
},
|
78
78
|
"peerDependenciesMeta": {
|
79
79
|
"typescript": {
|
@@ -86,5 +86,5 @@
|
|
86
86
|
"esbuild": "^0.19.9",
|
87
87
|
"yargs": "^17.5.1"
|
88
88
|
},
|
89
|
-
"gitHead": "
|
89
|
+
"gitHead": "ce9e1d4d18110e7d6352f63347ed80249588aff9"
|
90
90
|
}
|
package/tsconfig.json
CHANGED
@@ -1,26 +0,0 @@
|
|
1
|
-
const fs = require("fs");
|
2
|
-
|
3
|
-
/**
|
4
|
-
* UI5Elements loads the ssr-dom.js file with a package specifier to use the export conditions
|
5
|
-
* in the package.json so that a shim for the dom can be loaded from SSR environments
|
6
|
-
* This however makes the TS Checker plugin used for development try to load the file from dist as input
|
7
|
-
* This plugin loads an empty file and TS ignores the file completely
|
8
|
-
*/
|
9
|
-
|
10
|
-
const ssrDomShimLoader = async () => {
|
11
|
-
return {
|
12
|
-
name: 'ssr-dom-shim-loader',
|
13
|
-
resolveId(id) {
|
14
|
-
if (id === "@ui5/webcomponents-base/dist/ssr-dom.js") {
|
15
|
-
return "\0shim"
|
16
|
-
}
|
17
|
-
},
|
18
|
-
load(id) {
|
19
|
-
if (id === "\0shim") {
|
20
|
-
return "";
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
};
|
25
|
-
|
26
|
-
module.exports = ssrDomShimLoader;
|