@ui5/webcomponents-tools 0.0.0-96e98c995 → 0.0.0-97c4a1259
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 +322 -0
- package/assets-meta.js +9 -6
- package/components-package/eslint.js +34 -28
- package/components-package/nps.js +28 -18
- package/components-package/postcss.components.js +18 -15
- package/components-package/postcss.themes.js +20 -16
- package/components-package/vite.config.js +6 -5
- package/components-package/wdio.js +400 -393
- package/components-package/wdio.sync.js +9 -1
- package/icons-collection/nps.js +8 -6
- package/lib/create-icons/index.js +33 -10
- package/lib/create-illustrations/index.js +14 -0
- package/lib/create-new-component/index.js +71 -104
- package/lib/create-new-component/jsFileContentTemplate.js +73 -0
- package/lib/create-new-component/tsFileContentTemplate.js +80 -0
- package/lib/dev-server/virtual-index-html-plugin.js +1 -2
- package/lib/esm-abs-to-rel/index.js +1 -1
- package/lib/generate-js-imports/illustrations.js +75 -64
- package/lib/hbs2lit/src/compiler.js +9 -6
- package/lib/hbs2lit/src/litVisitor2.js +42 -17
- package/lib/hbs2lit/src/svgProcessor.js +12 -5
- package/lib/hbs2ui5/RenderTemplates/LitRenderer.js +32 -4
- package/lib/hbs2ui5/index.js +21 -4
- package/lib/i18n/defaults.js +9 -2
- package/lib/i18n/toJSON.js +1 -1
- package/lib/jsdoc/preprocess.js +2 -2
- package/lib/postcss-css-to-esm/index.js +41 -8
- package/lib/postcss-css-to-json/index.js +1 -1
- package/lib/postcss-scope-vars/index.js +24 -0
- package/lib/replace-global-core/index.js +1 -1
- package/lib/test-runner/test-runner.js +10 -2
- package/package.json +12 -6
@@ -16,7 +16,7 @@ const replaceGlobalCoreUsage = async (srcPath) => {
|
|
16
16
|
|
17
17
|
const generate = async () => {
|
18
18
|
const { globby } = await import("globby");
|
19
|
-
const fileNames = await globby(basePath + "**/*.js");
|
19
|
+
const fileNames = await globby(basePath.replace(/\\/g, "/") + "**/*.js");
|
20
20
|
return Promise.all(fileNames.map(replaceGlobalCoreUsage).filter(x => !!x));
|
21
21
|
};
|
22
22
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
const child_process = require("child_process");
|
2
2
|
const { readFileSync } = require("fs");
|
3
3
|
const path = require("path");
|
4
|
+
const fs = require("fs");
|
4
5
|
|
5
6
|
// search for dev-server port
|
6
7
|
// start in current folder
|
@@ -23,7 +24,7 @@ while (true) {
|
|
23
24
|
// check if we are in a monorepo and extract path from package.json
|
24
25
|
let packageRepositoryPath = "";
|
25
26
|
const pkg = require(path.join(process.cwd(), "package.json"));
|
26
|
-
packageRepositoryPath = pkg.repository.directory;
|
27
|
+
packageRepositoryPath = pkg.repository ? pkg.repository.directory : "";
|
27
28
|
|
28
29
|
// construct base url
|
29
30
|
// use devServerPort if a dev server is running, otherwise let the baseUrl in the wdio config be used
|
@@ -57,7 +58,14 @@ if (process.argv.length > 3) {
|
|
57
58
|
restParams = process.argv.slice(2).join(" ");
|
58
59
|
}
|
59
60
|
|
61
|
+
let wdioConfig = "";
|
62
|
+
if (fs.existsSync("config/wdio.conf.cjs")) {
|
63
|
+
wdioConfig = "config/wdio.conf.cjs";
|
64
|
+
} else if (fs.existsSync("config/wdio.conf.js")) {
|
65
|
+
wdioConfig = "config/wdio.conf.js";
|
66
|
+
}
|
67
|
+
|
60
68
|
// run wdio with calculated parameters
|
61
|
-
const cmd = `yarn cross-env WDIO_LOG_LEVEL=error wdio
|
69
|
+
const cmd = `yarn cross-env WDIO_LOG_LEVEL=error wdio ${wdioConfig} ${spec} ${baseUrl} ${restParams}`;
|
62
70
|
console.log(`executing: ${cmd}`);
|
63
71
|
child_process.execSync(cmd, {stdio: 'inherit'});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-97c4a1259",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -24,7 +24,6 @@
|
|
24
24
|
"@typescript-eslint/eslint-plugin": "^5.42.1",
|
25
25
|
"@typescript-eslint/parser": "^5.42.1",
|
26
26
|
"@wdio/cli": "^7.19.7",
|
27
|
-
"@wdio/devtools-service": "^7.19.7",
|
28
27
|
"@wdio/dot-reporter": "^7.19.7",
|
29
28
|
"@wdio/local-runner": "^7.19.7",
|
30
29
|
"@wdio/mocha-framework": "^7.19.7",
|
@@ -37,7 +36,7 @@
|
|
37
36
|
"command-line-args": "^5.1.1",
|
38
37
|
"concurrently": "^6.0.0",
|
39
38
|
"cross-env": "^7.0.3",
|
40
|
-
"cssnano": "^
|
39
|
+
"cssnano": "^6.0.1",
|
41
40
|
"escodegen": "^2.0.0",
|
42
41
|
"eslint": "^7.22.0",
|
43
42
|
"eslint-config-airbnb-base": "^14.2.1",
|
@@ -57,17 +56,24 @@
|
|
57
56
|
"postcss-cli": "^9.1.0",
|
58
57
|
"postcss-import": "^14.0.2",
|
59
58
|
"postcss-selector-parser": "^6.0.10",
|
59
|
+
"prompts": "^2.4.2",
|
60
60
|
"properties-reader": "^2.2.0",
|
61
61
|
"recursive-readdir": "^2.2.2",
|
62
62
|
"resolve": "^1.20.0",
|
63
63
|
"rimraf": "^3.0.2",
|
64
64
|
"slash": "3.0.0",
|
65
|
-
"vite": "^
|
65
|
+
"vite": "^3.0.4",
|
66
66
|
"wdio-chromedriver-service": "^7.3.2",
|
67
|
-
"zx": "^
|
67
|
+
"zx": "^7.2.3"
|
68
68
|
},
|
69
69
|
"peerDependencies": {
|
70
|
-
"chromedriver": "*"
|
70
|
+
"chromedriver": "*",
|
71
|
+
"typescript": "^4.9.4"
|
72
|
+
},
|
73
|
+
"peerDependenciesMeta": {
|
74
|
+
"typescript": {
|
75
|
+
"optional": true
|
76
|
+
}
|
71
77
|
},
|
72
78
|
"devDependencies": {
|
73
79
|
"yargs": "^17.5.1"
|