@ui5/webcomponents-tools 2.6.0-rc.0 → 2.6.0-rc.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
CHANGED
@@ -3,6 +3,14 @@
|
|
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.6.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.0...v2.6.0-rc.1) (2024-12-16)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
# [2.6.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0...v2.6.0-rc.0) (2024-12-12)
|
7
15
|
|
8
16
|
|
@@ -28,7 +28,7 @@ let customPlugin = {
|
|
28
28
|
|
29
29
|
// JS/TS
|
30
30
|
const jsPath = f.path.replace(/dist[\/\\]css/, "src/generated/").replace(".css", extension);
|
31
|
-
const jsContent = getFileContent(
|
31
|
+
const jsContent = getFileContent(packageJSON.name, "\`" + newText + "\`", true);
|
32
32
|
writeFileIfChanged(jsPath, jsContent);
|
33
33
|
});
|
34
34
|
})
|
@@ -42,16 +42,11 @@ let scopingPlugin = {
|
|
42
42
|
// JSON
|
43
43
|
const jsonPath = f.path.replace(/dist[\/\\]css/, "dist/generated/assets").replace(".css", ".css.json");
|
44
44
|
await mkdir(path.dirname(jsonPath), {recursive: true});
|
45
|
-
|
46
|
-
packageName: packageJSON.name,
|
47
|
-
fileName: jsonPath.substr(jsonPath.lastIndexOf("themes")),
|
48
|
-
content: newText,
|
49
|
-
};
|
50
|
-
writeFileIfChanged(jsonPath, JSON.stringify({_: data}));
|
45
|
+
writeFileIfChanged(jsonPath, JSON.stringify(newText));
|
51
46
|
|
52
47
|
// JS/TS
|
53
48
|
const jsPath = f.path.replace(/dist[\/\\]css/, "src/generated/").replace(".css", extension);
|
54
|
-
const jsContent = getFileContent(
|
49
|
+
const jsContent = getFileContent(packageJSON.name, "\`" + newText + "\`");
|
55
50
|
writeFileIfChanged(jsPath, jsContent);
|
56
51
|
});
|
57
52
|
})
|
@@ -47,30 +47,10 @@ registerThemePropertiesLoader("${packageName}", "${DEFAULT_THEME}", async () =>
|
|
47
47
|
`;
|
48
48
|
};
|
49
49
|
|
50
|
-
const getFileContent = (
|
51
|
-
if (tsMode) {
|
52
|
-
return getTSContent(targetFile, packageName, css, includeDefaultTheme);
|
53
|
-
}
|
54
|
-
|
55
|
-
return getJSContent(targetFile, packageName, css, includeDefaultTheme);
|
56
|
-
}
|
57
|
-
|
58
|
-
const getTSContent = (targetFile, packageName, css, includeDefaultTheme) => {
|
59
|
-
const typeImport = "import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";"
|
50
|
+
const getFileContent = (packageName, css, includeDefaultTheme) => {
|
60
51
|
const defaultTheme = includeDefaultTheme ? getDefaultThemeCode(packageName) : "";
|
61
|
-
|
62
|
-
// tabs are intentionally mixed to have proper identation in the produced file
|
63
|
-
return `${typeImport}
|
64
|
-
${defaultTheme}
|
65
|
-
const styleData: StyleData = {packageName:"${packageName}",fileName:"${targetFile.substr(targetFile.lastIndexOf("themes"))}",content:${css}};
|
66
|
-
export default styleData;
|
67
|
-
`;
|
52
|
+
return `${defaultTheme}export default ${css.trim()}`
|
68
53
|
}
|
69
54
|
|
70
|
-
const getJSContent = (targetFile, packageName, css, includeDefaultTheme) => {
|
71
|
-
const defaultTheme = includeDefaultTheme ? getDefaultThemeCode(packageName) : "";
|
72
|
-
|
73
|
-
return `${defaultTheme}export default {packageName:"${packageName}",fileName:"${targetFile.substr(targetFile.lastIndexOf("themes"))}",content:${css}}`
|
74
|
-
}
|
75
55
|
|
76
56
|
export { writeFileIfChanged, stripThemingBaseContent, getFileContent}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "2.6.0-rc.
|
3
|
+
"version": "2.6.0-rc.1",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -86,5 +86,5 @@
|
|
86
86
|
"esbuild": "^0.19.9",
|
87
87
|
"yargs": "^17.5.1"
|
88
88
|
},
|
89
|
-
"gitHead": "
|
89
|
+
"gitHead": "f002a980bcb67a9eb7135c887a4c94c7378a6918"
|
90
90
|
}
|