@ui5/webcomponents-tools 1.9.0 → 1.9.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,23 @@
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
+ # [1.9.0](https://github.com/SAP/ui5-webcomponents/compare/v1.8.0...v1.9.0) (2022-10-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **framework:** fix contexts management in hbs-2-lit compiler ([#5958](https://github.com/SAP/ui5-webcomponents/issues/5958)) ([94d1619](https://github.com/SAP/ui5-webcomponents/commit/94d16199ed7dc79b21d99a0637533e93af54c90a)), closes [#4701](https://github.com/SAP/ui5-webcomponents/issues/4701)
12
+
13
+
14
+ ### Features
15
+
16
+ * **framework:** fetch illustrations on demand ([#5927](https://github.com/SAP/ui5-webcomponents/issues/5927)) ([f8e1033](https://github.com/SAP/ui5-webcomponents/commit/f8e1033643626261dcad8a38f65c325ba9aff99f))
17
+ * **framework:** generate custom elements manifest ([#5964](https://github.com/SAP/ui5-webcomponents/issues/5964)) ([0d62770](https://github.com/SAP/ui5-webcomponents/commit/0d62770cace54fd9aef73d9632dd06d8a83680e9))
18
+
19
+
20
+
21
+
22
+
6
23
  # [1.8.0](https://github.com/SAP/ui5-webcomponents/compare/v1.7.1...v1.8.0) (2022-10-03)
7
24
 
8
25
 
@@ -1,14 +1,17 @@
1
1
  const path = require("path");
2
2
  const fs = require("fs");
3
3
  const LIB = path.join(__dirname, `../lib/`);
4
- const FIORI = path.join(__dirname, `../../fiori/`);
5
-
6
4
 
7
5
  const getScripts = (options) => {
8
6
 
9
- let illustrations = options.illustrationsData || [];
10
- illustrations = illustrations.map(illustration => `node "${LIB}/create-illustrations/index.js" ${illustration.path} ${illustration.defaultText} ${illustration.illustrationsPrefix} ${illustration.set} ${illustration.destinationPath}`);
11
- let illustrationsScript = illustrations.join(" && ");
7
+ // The script creates all JS modules (dist/illustrations/{illustrationName}.js) out of the existing SVGs
8
+ const illustrationsData = options.illustrationsData || [];
9
+ illustrations = illustrationsData.map(illustration => `node "${LIB}/create-illustrations/index.js" ${illustration.path} ${illustration.defaultText} ${illustration.illustrationsPrefix} ${illustration.set} ${illustration.destinationPath}`);
10
+ const createIllustrationsJSImportsScript = illustrations.join(" && ");
11
+
12
+ // The script creates the "dist/generated/js-imports/Illustration.js" file that registers loaders (dynamic JS imports) for each illustration
13
+ const illustrationDestinationPaths = illustrationsData.map(illustrations => illustrations.destinationPath);
14
+ const createIllustrationsLoadersScript = options.fioriPackage ? `node ${LIB}/generate-js-imports/illustrations.js ${illustrationDestinationPaths[0]} ${illustrationDestinationPaths[1]} dist/generated/js-imports` : "";
12
15
 
13
16
  let viteConfig;
14
17
  if (fs.existsSync("config/vite.config.js")) {
@@ -62,12 +65,12 @@ const getScripts = (options) => {
62
65
  i18n: `node "${LIB}/generate-json-imports/i18n.js" dist/generated/assets/i18n dist/generated/json-imports`,
63
66
  },
64
67
  jsImports: {
65
- default: "mkdirp dist/generated/js-imports && nps build.jsImports.illustrations",
66
- illustrations: `node "${LIB}/generate-js-imports/illustrations.js" ${FIORI}/dist/illustrations ${FIORI}/dist/illustrations/tnt dist/generated/js-imports`,
68
+ default: "mkdirp dist/generated/js-imports && nps build.jsImports.illustrationsLoaders",
69
+ illustrationsLoaders: createIllustrationsLoadersScript,
67
70
  },
68
71
  bundle: `vite build ${viteConfig}`,
69
72
  api: `jsdoc -c "${LIB}/jsdoc/config.json"`,
70
- illustrations: illustrationsScript
73
+ illustrations: createIllustrationsJSImportsScript,
71
74
  },
72
75
  copy: {
73
76
  default: "nps copy.src copy.props",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-tools",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "UI5 Web Components: webcomponents.tools",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",