@ui5/webcomponents-tools 2.15.0-rc.2 → 2.15.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 +16 -0
- package/bin/ui5nps.js +41 -8
- package/components-package/nps.js +50 -33
- package/icons-collection/nps.js +17 -13
- package/lib/amd-to-es6/index.js +15 -10
- package/lib/cem/cem.js +12 -0
- package/lib/cem/validate.js +56 -47
- package/lib/copy-and-watch/index.js +105 -97
- package/lib/copy-list/index.js +16 -10
- package/lib/create-icons/index.js +19 -15
- package/lib/create-illustrations/index.js +28 -24
- package/lib/css-processors/css-processor-components.mjs +71 -61
- package/lib/css-processors/css-processor-themes.mjs +76 -66
- package/lib/generate-js-imports/illustrations.js +17 -14
- package/lib/generate-json-imports/i18n.js +13 -9
- package/lib/generate-json-imports/themes.js +15 -10
- package/lib/i18n/defaults.js +12 -7
- package/lib/i18n/toJSON.js +14 -10
- package/lib/remove-dev-mode/remove-dev-mode.mjs +34 -24
- package/lib/rimraf/rimraf.js +31 -0
- package/package.json +4 -5
|
@@ -8,81 +8,91 @@ import combineDuplicatedSelectors from "../postcss-combine-duplicated-selectors/
|
|
|
8
8
|
import { writeFileIfChanged, getFileContent } from "./shared.mjs";
|
|
9
9
|
import scopeVariables from "./scope-variables.mjs";
|
|
10
10
|
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const generate = async (argv) => {
|
|
12
|
+
const tsMode = process.env.UI5_TS === "true";
|
|
13
|
+
const extension = tsMode ? ".css.ts" : ".css.js";
|
|
13
14
|
|
|
14
|
-
const packageJSON = JSON.parse(fs.readFileSync("./package.json"))
|
|
15
|
+
const packageJSON = JSON.parse(fs.readFileSync("./package.json"))
|
|
15
16
|
|
|
16
|
-
const inputFiles = await globby([
|
|
17
|
-
|
|
18
|
-
]);
|
|
19
|
-
const restArgs =
|
|
17
|
+
const inputFiles = await globby([
|
|
18
|
+
"src/**/parameters-bundle.css",
|
|
19
|
+
]);
|
|
20
|
+
const restArgs = argv.slice(2);
|
|
20
21
|
|
|
21
|
-
const processThemingPackageFile = async (f) => {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const processThemingPackageFile = async (f) => {
|
|
23
|
+
const selector = ':root';
|
|
24
|
+
const result = await postcss().process(f.text);
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
const newRule = postcss.rule({ selector });
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
result.root.walkRules(selector, rule => {
|
|
29
|
+
rule.walkDecls(decl => {
|
|
30
|
+
if (!decl.prop.startsWith('--sapFontUrl')) {
|
|
31
|
+
newRule.append(decl.clone());
|
|
32
|
+
}
|
|
33
|
+
});
|
|
32
34
|
});
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
return newRule.toString();
|
|
36
|
-
};
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
return newRule.toString();
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const processComponentPackageFile = async (f) => {
|
|
40
|
+
const result = await postcss(combineDuplicatedSelectors).process(f.text);
|
|
41
|
+
|
|
42
|
+
return scopeVariables(result.css, packageJSON, f.path);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
let scopingPlugin = {
|
|
46
|
+
name: 'scoping',
|
|
47
|
+
setup(build) {
|
|
48
|
+
build.initialOptions.write = false;
|
|
49
|
+
|
|
50
|
+
build.onEnd(result => {
|
|
51
|
+
result.outputFiles.forEach(async f => {
|
|
52
|
+
let newText = f.path.includes("packages/theming") ? await processThemingPackageFile(f) : await processComponentPackageFile(f);
|
|
53
|
+
|
|
54
|
+
await mkdir(path.dirname(f.path), { recursive: true });
|
|
55
|
+
writeFile(f.path, newText);
|
|
56
|
+
|
|
57
|
+
// JSON
|
|
58
|
+
const jsonPath = f.path.replace(/dist[\/\\]css/, "dist/generated/assets").replace(".css", ".css.json");
|
|
59
|
+
await mkdir(path.dirname(jsonPath), { recursive: true });
|
|
60
|
+
writeFileIfChanged(jsonPath, JSON.stringify(newText));
|
|
61
|
+
|
|
62
|
+
// JS/TS
|
|
63
|
+
const jsPath = f.path.replace(/dist[\/\\]css/, "src/generated/").replace(".css", extension);
|
|
64
|
+
const jsContent = getFileContent(packageJSON.name, "\`" + newText + "\`");
|
|
65
|
+
writeFileIfChanged(jsPath, jsContent);
|
|
66
|
+
});
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const config = {
|
|
72
|
+
entryPoints: inputFiles,
|
|
73
|
+
bundle: true,
|
|
74
|
+
minify: true,
|
|
75
|
+
outdir: 'dist/css',
|
|
76
|
+
outbase: 'src',
|
|
77
|
+
plugins: [
|
|
78
|
+
scopingPlugin,
|
|
79
|
+
],
|
|
80
|
+
external: ["*.ttf", "*.woff", "*.woff2"],
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
if (restArgs.includes("-w")) {
|
|
84
|
+
let ctx = await esbuild.context(config);
|
|
85
|
+
console.log('watching...')
|
|
86
|
+
await ctx.watch()
|
|
87
|
+
} else {
|
|
88
|
+
await esbuild.build(config);
|
|
89
|
+
}
|
|
42
90
|
}
|
|
43
91
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
setup(build) {
|
|
47
|
-
build.initialOptions.write = false;
|
|
48
|
-
|
|
49
|
-
build.onEnd(result => {
|
|
50
|
-
result.outputFiles.forEach(async f => {
|
|
51
|
-
let newText = f.path.includes("packages/theming") ? await processThemingPackageFile(f) : await processComponentPackageFile(f);
|
|
52
|
-
|
|
53
|
-
await mkdir(path.dirname(f.path), { recursive: true });
|
|
54
|
-
writeFile(f.path, newText);
|
|
55
|
-
|
|
56
|
-
// JSON
|
|
57
|
-
const jsonPath = f.path.replace(/dist[\/\\]css/, "dist/generated/assets").replace(".css", ".css.json");
|
|
58
|
-
await mkdir(path.dirname(jsonPath), { recursive: true });
|
|
59
|
-
writeFileIfChanged(jsonPath, JSON.stringify(newText));
|
|
60
|
-
|
|
61
|
-
// JS/TS
|
|
62
|
-
const jsPath = f.path.replace(/dist[\/\\]css/, "src/generated/").replace(".css", extension);
|
|
63
|
-
const jsContent = getFileContent(packageJSON.name, "\`" + newText + "\`");
|
|
64
|
-
writeFileIfChanged(jsPath, jsContent);
|
|
65
|
-
});
|
|
66
|
-
})
|
|
67
|
-
},
|
|
92
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
93
|
+
generate(process.argv)
|
|
68
94
|
}
|
|
69
95
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
bundle: true,
|
|
73
|
-
minify: true,
|
|
74
|
-
outdir: 'dist/css',
|
|
75
|
-
outbase: 'src',
|
|
76
|
-
plugins: [
|
|
77
|
-
scopingPlugin,
|
|
78
|
-
],
|
|
79
|
-
external: ["*.ttf", "*.woff", "*.woff2"],
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
if (restArgs.includes("-w")) {
|
|
83
|
-
let ctx = await esbuild.context(config);
|
|
84
|
-
await ctx.watch()
|
|
85
|
-
console.log('watching...')
|
|
86
|
-
} else {
|
|
87
|
-
const result = await esbuild.build(config);
|
|
96
|
+
export default {
|
|
97
|
+
_ui5mainFn: generate
|
|
88
98
|
}
|
|
@@ -43,7 +43,17 @@ const getMatchingFiles = async (folder, pattern) => {
|
|
|
43
43
|
return dir.filter((fileName) => fileName.match(pattern));
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
const generateIllustrations = async (
|
|
46
|
+
const generateIllustrations = async (argv) => {
|
|
47
|
+
const config = {
|
|
48
|
+
inputFolder: argv[2],
|
|
49
|
+
outputFile: argv[3],
|
|
50
|
+
set: argv[4],
|
|
51
|
+
collection: argv[5],
|
|
52
|
+
location: argv[6],
|
|
53
|
+
filterOut: argv[7].slice().split(","),
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
47
57
|
const { inputFolder, outputFile, collection, location, prefix, filterOut, set } = config;
|
|
48
58
|
|
|
49
59
|
const normalizedInputFolder = path.normalize(inputFolder);
|
|
@@ -64,19 +74,12 @@ const generateIllustrations = async (config) => {
|
|
|
64
74
|
|
|
65
75
|
await fs.mkdir(path.dirname(normalizedOutputFile), { recursive: true });
|
|
66
76
|
await fs.writeFile(normalizedOutputFile, contentDynamic);
|
|
67
|
-
};
|
|
68
77
|
|
|
69
|
-
|
|
70
|
-
const config = {
|
|
71
|
-
inputFolder: process.argv[2],
|
|
72
|
-
outputFile: process.argv[3],
|
|
73
|
-
set: process.argv[4],
|
|
74
|
-
collection: process.argv[5],
|
|
75
|
-
location: process.argv[6],
|
|
76
|
-
filterOut: process.argv[7].slice().split(","),
|
|
78
|
+
console.log("Generated illustration imports.");
|
|
77
79
|
};
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
generateIllustrations(
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
if (require.main === module) {
|
|
82
|
+
generateIllustrations(process.argv)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
exports._ui5mainFn = generateIllustrations;
|
|
@@ -32,14 +32,14 @@ localeIds.forEach(localeId => {
|
|
|
32
32
|
`;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const generate = async () => {
|
|
35
|
+
const generate = async (argv) => {
|
|
36
36
|
|
|
37
37
|
const packageName = JSON.parse(await fs.readFile("package.json")).name;
|
|
38
38
|
|
|
39
|
-
const inputFolder = path.normalize(
|
|
40
|
-
const outputFileDynamic = path.normalize(`${
|
|
41
|
-
const outputFileFetchMetaResolve = path.normalize(`${
|
|
42
|
-
const outputFileDynamicImportJSONImport = path.normalize(`${
|
|
39
|
+
const inputFolder = path.normalize(argv[2]);
|
|
40
|
+
const outputFileDynamic = path.normalize(`${argv[3]}/i18n.${ext}`);
|
|
41
|
+
const outputFileFetchMetaResolve = path.normalize(`${argv[3]}/i18n-fetch.${ext}`);
|
|
42
|
+
const outputFileDynamicImportJSONImport = path.normalize(`${argv[3]}/i18n-node.${ext}`);
|
|
43
43
|
|
|
44
44
|
// All languages present in the file system
|
|
45
45
|
const files = await fs.readdir(inputFolder);
|
|
@@ -79,9 +79,13 @@ const generate = async () => {
|
|
|
79
79
|
fs.writeFile(outputFileDynamic, contentDynamic),
|
|
80
80
|
fs.writeFile(outputFileFetchMetaResolve, contentFetchMetaResolve),
|
|
81
81
|
fs.writeFile(outputFileDynamicImportJSONImport, contentDynamicImportJSONAttr),
|
|
82
|
-
])
|
|
82
|
+
]).then(() => {
|
|
83
|
+
console.log("Generated i18n JSON imports.");
|
|
84
|
+
});
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
87
|
+
if (require.main === module) {
|
|
88
|
+
generate(process.argv)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
exports._ui5mainFn = generate;
|
|
@@ -5,11 +5,11 @@ const assets = require("../../assets-meta.js");
|
|
|
5
5
|
const isTypeScript = process.env.UI5_TS;
|
|
6
6
|
const ext = isTypeScript ? 'ts' : 'js';
|
|
7
7
|
|
|
8
|
-
const generate = async () => {
|
|
9
|
-
const inputFolder = path.normalize(
|
|
10
|
-
const outputFileDynamic = path.normalize(`${
|
|
11
|
-
const outputFileDynamicImportJSONAttr = path.normalize(`${
|
|
12
|
-
const outputFileFetchMetaResolve = path.normalize(`${
|
|
8
|
+
const generate = async (argv) => {
|
|
9
|
+
const inputFolder = path.normalize(argv[2]);
|
|
10
|
+
const outputFileDynamic = path.normalize(`${argv[3]}/Themes.${ext}`);
|
|
11
|
+
const outputFileDynamicImportJSONAttr = path.normalize(`${argv[3]}/Themes-node.${ext}`);
|
|
12
|
+
const outputFileFetchMetaResolve = path.normalize(`${argv[3]}/Themes-fetch.${ext}`);
|
|
13
13
|
|
|
14
14
|
// All supported optional themes
|
|
15
15
|
const allThemes = assets.themes.all;
|
|
@@ -49,7 +49,7 @@ const loadAndCheck = async (themeName) => {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
${availableThemesArray}
|
|
52
|
-
.forEach(themeName => registerThemePropertiesLoader(${
|
|
52
|
+
.forEach(themeName => registerThemePropertiesLoader(${packageName.split("").map(c => `"${c}"`).join(" + ")}, themeName, loadAndCheck));
|
|
53
53
|
`;
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -58,9 +58,14 @@ ${availableThemesArray}
|
|
|
58
58
|
fs.writeFile(outputFileDynamic, contentDynamic(dynamicImportLines)),
|
|
59
59
|
fs.writeFile(outputFileDynamicImportJSONAttr, contentDynamic(dynamicImportJSONAttrLines)),
|
|
60
60
|
fs.writeFile(outputFileFetchMetaResolve, contentDynamic(fetchMetaResolveLines)),
|
|
61
|
-
])
|
|
61
|
+
]).
|
|
62
|
+
then(() => {
|
|
63
|
+
console.log("Generated themes JSON imports.");
|
|
64
|
+
})
|
|
62
65
|
};
|
|
63
66
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
+
if (require.main === module) {
|
|
68
|
+
generate(process.argv)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
exports._ui5mainFn = generate;
|
package/lib/i18n/defaults.js
CHANGED
|
@@ -3,14 +3,14 @@ const path = require('path');
|
|
|
3
3
|
const PropertiesReader = require('properties-reader');
|
|
4
4
|
const assets = require('../../assets-meta.js');
|
|
5
5
|
|
|
6
|
-
const generate = async () => {
|
|
6
|
+
const generate = async (argv) => {
|
|
7
7
|
const defaultLanguage = assets.languages.default;
|
|
8
8
|
|
|
9
|
-
const messageBundle = path.normalize(`${
|
|
10
|
-
const messageBundleDefaultLanguage = path.normalize(`${
|
|
9
|
+
const messageBundle = path.normalize(`${argv[2]}/messagebundle.properties`);
|
|
10
|
+
const messageBundleDefaultLanguage = path.normalize(`${argv[2]}/messagebundle_${defaultLanguage}.properties`);
|
|
11
11
|
const tsMode = process.env.UI5_TS === "true"; // In Typescript mode, we output .ts files and set the required types, otherwise - output pure .js files
|
|
12
12
|
|
|
13
|
-
const outputFile = path.normalize(`${
|
|
13
|
+
const outputFile = path.normalize(`${argv[3]}/i18n-defaults.${tsMode ? "ts" : "js"}`);
|
|
14
14
|
|
|
15
15
|
if (!messageBundle || !outputFile) {
|
|
16
16
|
return;
|
|
@@ -76,8 +76,13 @@ export {${textKeys.join()}};`;
|
|
|
76
76
|
|
|
77
77
|
await fs.mkdir(path.dirname(outputFile), { recursive: true });
|
|
78
78
|
await fs.writeFile(outputFile, getOutputFileContent(properties, defaultLanguageProperties));
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
console.log("i18n default file generated.")
|
|
79
82
|
};
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
+
if (require.main === module) {
|
|
85
|
+
generate(process.argv)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
exports._ui5mainFn = generate;
|
package/lib/i18n/toJSON.js
CHANGED
|
@@ -14,10 +14,7 @@ const assets = require('../../assets-meta.js');
|
|
|
14
14
|
|
|
15
15
|
const allLanguages = assets.languages.all;
|
|
16
16
|
|
|
17
|
-
const
|
|
18
|
-
const messagesJSONDist = path.normalize(`${process.argv[3]}`);
|
|
19
|
-
|
|
20
|
-
const convertToJSON = async (file) => {
|
|
17
|
+
const convertToJSON = async (file, distPath) => {
|
|
21
18
|
const properties = PropertiesReader(file)._properties;
|
|
22
19
|
const filename = path.basename(file, path.extname(file));
|
|
23
20
|
const language = filename.match(/^messagebundle_(.*?)$/)[1];
|
|
@@ -25,19 +22,26 @@ const convertToJSON = async (file) => {
|
|
|
25
22
|
console.log("Not supported language: ", language);
|
|
26
23
|
return;
|
|
27
24
|
}
|
|
28
|
-
const outputFile = path.normalize(`${
|
|
25
|
+
const outputFile = path.normalize(`${distPath}/${filename}.json`);
|
|
29
26
|
|
|
30
27
|
return fs.writeFile(outputFile, JSON.stringify(properties));
|
|
31
28
|
// console.log(`[i18n]: "${filename}.json" has been generated!`);
|
|
32
29
|
};
|
|
33
30
|
|
|
34
|
-
const generate = async () => {
|
|
31
|
+
const generate = async (agrv) => {
|
|
35
32
|
const { globby } = await import("globby");
|
|
33
|
+
const messagesBundles = path.normalize(`${agrv[2]}/messagebundle_*.properties`);
|
|
34
|
+
const messagesJSONDist = path.normalize(`${agrv[3]}`);
|
|
36
35
|
await fs.mkdir(messagesJSONDist, { recursive: true });
|
|
37
36
|
const files = await globby(messagesBundles.replace(/\\/g, "/"));
|
|
38
|
-
return Promise.all(files.map(convertToJSON))
|
|
37
|
+
return Promise.all(files.map(file => convertToJSON(file, messagesJSONDist)))
|
|
38
|
+
.then(() => {
|
|
39
|
+
console.log("Message bundle JSON files generated.");
|
|
40
|
+
});
|
|
39
41
|
};
|
|
40
42
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
43
|
+
if (require.main === module) {
|
|
44
|
+
generate(process.argv)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
exports._ui5mainFn = generate;
|
|
@@ -2,36 +2,46 @@ import { globby } from "globby";
|
|
|
2
2
|
import * as esbuild from 'esbuild'
|
|
3
3
|
import * as fs from "fs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const generate = async () => {
|
|
6
|
+
let customPlugin = {
|
|
6
7
|
name: 'ui5-tools',
|
|
7
8
|
setup(build) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
9
|
+
build.onLoad({ filter: /UI5Element.ts$/ }, async (args) => {
|
|
10
|
+
let text = await fs.promises.readFile(args.path, 'utf8');
|
|
11
|
+
text = text.replaceAll(/const DEV_MODE = true/g, "");
|
|
12
|
+
text = text.replaceAll(/if \(DEV_MODE\)/g, "if (false)");
|
|
13
|
+
return {
|
|
14
|
+
contents: text,
|
|
15
|
+
loader: 'ts',
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
},
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
const getConfig = async () => {
|
|
21
|
+
const getConfig = async () => {
|
|
21
22
|
const config = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
entryPoints: await globby("src/**/*.ts"),
|
|
24
|
+
bundle: false,
|
|
25
|
+
minify: true,
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
outdir: 'dist/prod',
|
|
28
|
+
outbase: 'src',
|
|
29
|
+
plugins: [
|
|
30
|
+
customPlugin,
|
|
31
|
+
]
|
|
31
32
|
};
|
|
32
33
|
return config;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
const config = await getConfig();
|
|
38
|
+
const result = await esbuild.build(config);
|
|
33
39
|
}
|
|
34
40
|
|
|
41
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
42
|
+
generate()
|
|
43
|
+
}
|
|
35
44
|
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
export default {
|
|
46
|
+
_ui5mainFn: generate
|
|
47
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const rimraf = dir => {
|
|
5
|
+
if (fs.existsSync(dir)) {
|
|
6
|
+
fs.readdirSync(dir).forEach(entry => {
|
|
7
|
+
const entryPath = path.join(dir, entry);
|
|
8
|
+
if (fs.lstatSync(entryPath).isDirectory()) {
|
|
9
|
+
rimraf(entryPath);
|
|
10
|
+
} else {
|
|
11
|
+
fs.unlinkSync(entryPath);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
fs.rmdirSync(dir);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const main = argv => {
|
|
19
|
+
if (argv.length < 3) {
|
|
20
|
+
console.error("rimraf <dir>");
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
const dir = argv[2];
|
|
24
|
+
rimraf(dir);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
if (require.main === module) {
|
|
28
|
+
main(process.argv)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports._ui5mainFn = main;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
|
3
|
-
"version": "2.15.0
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"directory": "packages/tools"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@custom-elements-manifest/analyzer": "
|
|
23
|
+
"@custom-elements-manifest/analyzer": "patch:@custom-elements-manifest/analyzer@npm%3A0.10.6#~/.yarn/patches/@custom-elements-manifest-analyzer-npm-0.10.6-9b5ff0c50b.patch",
|
|
24
24
|
"@typescript-eslint/eslint-plugin": "^6.9.0",
|
|
25
25
|
"@typescript-eslint/parser": "^6.9.0",
|
|
26
26
|
"@wdio/cli": "^7.19.7",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"chokidar-cli": "^3.0.0",
|
|
38
38
|
"command-line-args": "^5.1.1",
|
|
39
39
|
"comment-parser": "^1.4.0",
|
|
40
|
-
"concurrently": "^6.0.0",
|
|
41
40
|
"cross-env": "^7.0.3",
|
|
42
41
|
"custom-element-jet-brains-integration": "^1.4.4",
|
|
43
42
|
"dotenv": "^16.5.0",
|
|
@@ -63,8 +62,8 @@
|
|
|
63
62
|
"properties-reader": "^2.2.0",
|
|
64
63
|
"recursive-readdir": "^2.2.2",
|
|
65
64
|
"resolve": "^1.20.0",
|
|
66
|
-
"rimraf": "^3.0.2",
|
|
67
65
|
"slash": "3.0.0",
|
|
66
|
+
"string-argv": "^0.3.2",
|
|
68
67
|
"vite": "^5.4.8",
|
|
69
68
|
"vite-plugin-istanbul": "^6.0.2",
|
|
70
69
|
"wdio-chromedriver-service": "^7.3.2"
|
|
@@ -82,5 +81,5 @@
|
|
|
82
81
|
"esbuild": "^0.25.0",
|
|
83
82
|
"yargs": "^17.5.1"
|
|
84
83
|
},
|
|
85
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "5c40df56e6b1b834e277adee102d0e299a5c772c"
|
|
86
85
|
}
|