@ui5/webcomponents-tools 0.0.0-5f8ce9393 → 0.0.0-6d98d0c29
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 +107 -1
- package/assets-meta.js +147 -0
- package/bin/dev.js +16 -1
- package/components-package/nps.js +74 -33
- package/components-package/rollup.js +131 -49
- package/components-package/wdio.js +58 -47
- package/icons-collection/nps.js +38 -28
- package/lib/copy-and-watch/index.js +122 -0
- package/lib/copy-list/index.js +28 -0
- package/lib/create-icons/index.js +27 -23
- package/lib/create-illustrations/index.js +95 -0
- package/lib/create-new-component/index.js +18 -6
- package/lib/documentation/index.js +43 -21
- package/lib/esm-abs-to-rel/index.js +54 -0
- package/lib/generate-json-imports/i18n.js +91 -47
- package/lib/generate-json-imports/themes.js +61 -13
- package/lib/hash/config.js +10 -0
- package/lib/hash/generate.js +19 -0
- package/lib/hash/upToDate.js +31 -0
- package/lib/hbs2lit/index.js +2 -4
- package/lib/hbs2lit/src/compiler.js +8 -7
- package/lib/hbs2lit/src/includesReplacer.js +22 -16
- package/lib/hbs2lit/src/litVisitor2.js +47 -9
- package/lib/hbs2lit/src/svgProcessor.js +3 -3
- package/lib/hbs2ui5/RenderTemplates/LitRenderer.js +5 -5
- package/lib/hbs2ui5/index.js +26 -20
- package/lib/i18n/defaults.js +25 -6
- package/lib/i18n/toJSON.js +15 -4
- package/lib/init-package/index.js +28 -11
- package/lib/init-package/resources/bundle.es5.js +1 -1
- package/lib/init-package/resources/bundle.esm.js +2 -5
- package/lib/init-package/resources/src/Assets.js +0 -1
- package/lib/init-package/resources/src/{Demo.hbs → MyFirstComponent.hbs} +0 -0
- package/lib/init-package/resources/src/{Demo.js → MyFirstComponent.js} +0 -0
- package/lib/init-package/resources/src/i18n/messagebundle.properties +1 -1
- package/lib/init-package/resources/src/themes/{Demo.css → MyFirstComponent.css} +2 -2
- package/lib/init-package/resources/src/themes/sap_belize/parameters-bundle.css +1 -1
- package/lib/init-package/resources/src/themes/sap_belize_hcb/parameters-bundle.css +1 -1
- package/lib/init-package/resources/src/themes/sap_belize_hcw/parameters-bundle.css +3 -0
- package/lib/init-package/resources/src/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/lib/init-package/resources/src/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
- package/lib/init-package/resources/src/themes/sap_fiori_3_hcb/parameters-bundle.css +3 -0
- package/lib/init-package/resources/src/themes/sap_fiori_3_hcw/parameters-bundle.css +3 -0
- package/lib/init-package/resources/test/pages/index.html +9 -4
- package/lib/jsdoc/config.json +1 -1
- package/lib/jsdoc/plugin.js +24 -4
- package/lib/jsdoc/template/publish.js +11 -2
- package/lib/polyfill-placeholder/index.js +5 -0
- package/lib/postcss-css-to-esm/index.js +31 -19
- package/lib/postcss-css-to-json/index.js +22 -11
- package/lib/postcss-new-files/index.js +36 -0
- package/lib/replace-global-core/index.js +20 -0
- package/lib/scoping/get-all-tags.js +44 -0
- package/lib/scoping/lint-src.js +31 -0
- package/lib/scoping/scope-test-pages.js +40 -0
- package/lib/serve/index.js +46 -0
- package/{components-package → lib/serve}/serve.json +0 -0
- package/package-lock.json +48 -0
- package/package.json +53 -51
package/lib/jsdoc/plugin.js
CHANGED
@@ -29,7 +29,11 @@
|
|
29
29
|
*
|
30
30
|
* appenddocs
|
31
31
|
*
|
32
|
-
*
|
32
|
+
* tagname
|
33
|
+
*
|
34
|
+
* native
|
35
|
+
*
|
36
|
+
* allowPreventDefault
|
33
37
|
*
|
34
38
|
* It furthermore listens to the following JSDoc3 events to implement additional functionality
|
35
39
|
*
|
@@ -2060,9 +2064,11 @@ exports.defineTags = function(dictionary) {
|
|
2060
2064
|
});
|
2061
2065
|
|
2062
2066
|
dictionary.defineTag('slot', {
|
2063
|
-
mustNotHaveValue: true,
|
2064
2067
|
onTagged: function(doclet, tag) {
|
2065
2068
|
doclet.slot = true;
|
2069
|
+
if (tag.value) {
|
2070
|
+
doclet.propertyName = tag.value;
|
2071
|
+
}
|
2066
2072
|
}
|
2067
2073
|
});
|
2068
2074
|
|
@@ -2073,10 +2079,24 @@ exports.defineTags = function(dictionary) {
|
|
2073
2079
|
}
|
2074
2080
|
});
|
2075
2081
|
|
2076
|
-
dictionary.defineTag('
|
2082
|
+
dictionary.defineTag('tagname', {
|
2077
2083
|
mustHaveValue: true,
|
2078
2084
|
onTagged: function(doclet, tag) {
|
2079
|
-
doclet.
|
2085
|
+
doclet.tagname = tag.value;
|
2086
|
+
}
|
2087
|
+
});
|
2088
|
+
|
2089
|
+
dictionary.defineTag('allowPreventDefault', {
|
2090
|
+
mustHaveValue: false,
|
2091
|
+
onTagged: function(doclet, tag) {
|
2092
|
+
doclet.allowPreventDefault = true;
|
2093
|
+
}
|
2094
|
+
});
|
2095
|
+
|
2096
|
+
dictionary.defineTag('native', {
|
2097
|
+
mustHaveValue: false,
|
2098
|
+
onTagged: function(doclet, tag) {
|
2099
|
+
doclet.native = true;
|
2080
2100
|
}
|
2081
2101
|
});
|
2082
2102
|
};
|
@@ -2651,8 +2651,8 @@ function createAPIJSON4Symbol(symbol, omitDefaults) {
|
|
2651
2651
|
|
2652
2652
|
attrib("name", symbol.longname);
|
2653
2653
|
attrib("basename", symbol.name);
|
2654
|
-
if (symbol.
|
2655
|
-
attrib("
|
2654
|
+
if (symbol.tagname) {
|
2655
|
+
attrib("tagname", symbol.tagname);
|
2656
2656
|
}
|
2657
2657
|
if (symbol.appenddocs) {
|
2658
2658
|
attrib("appenddocs", symbol.appenddocs);
|
@@ -2838,6 +2838,9 @@ function createAPIJSON4Symbol(symbol, omitDefaults) {
|
|
2838
2838
|
if (member.slot) {
|
2839
2839
|
tag("property");
|
2840
2840
|
attrib("name", member.name);
|
2841
|
+
if (member.propertyName) {
|
2842
|
+
attrib("propertyName", member.propertyName);
|
2843
|
+
}
|
2841
2844
|
if (member.__ui5.module && member.__ui5.module !== symbol.__ui5.module) {
|
2842
2845
|
attrib("module", member.__ui5.module);
|
2843
2846
|
attrib("export", undefined, '', true);
|
@@ -2879,6 +2882,12 @@ function createAPIJSON4Symbol(symbol, omitDefaults) {
|
|
2879
2882
|
attrib("module", member.__ui5.module);
|
2880
2883
|
attrib("export", undefined, '', true);
|
2881
2884
|
}
|
2885
|
+
if (member.allowPreventDefault) {
|
2886
|
+
attrib("allowPreventDefault", true);
|
2887
|
+
}
|
2888
|
+
if (member.native) {
|
2889
|
+
attrib("native", true);
|
2890
|
+
}
|
2882
2891
|
attrib("visibility", visibility(member), 'public');
|
2883
2892
|
if ( member.scope === 'static' ) {
|
2884
2893
|
attrib("static", true, false, /* raw = */true);
|
@@ -1,33 +1,45 @@
|
|
1
|
-
const postcss = require('postcss');
|
2
1
|
const fs = require('fs');
|
3
2
|
const path = require('path');
|
4
3
|
const mkdirp = require('mkdirp');
|
4
|
+
const assets = require("../../assets-meta.js");
|
5
5
|
|
6
|
-
const
|
7
|
-
return `import "@ui5/webcomponents-theme-base/dist/DefaultTheme.js";
|
8
|
-
|
9
|
-
import { registerThemeProperties } from "@ui5/webcomponents-base/dist/asset-registries/Themes.js";
|
6
|
+
const DEFAULT_THEME = assets.themes.default;
|
10
7
|
|
11
|
-
|
8
|
+
const getDefaultThemeCode = packageName => {
|
9
|
+
return `import { registerThemePropertiesLoader } from "@ui5/webcomponents-base/dist/asset-registries/Themes.js";
|
12
10
|
|
13
|
-
|
11
|
+
import defaultThemeBase from "@ui5/webcomponents-theme-base/dist/generated/themes/${DEFAULT_THEME}/parameters-bundle.css.js";
|
12
|
+
import defaultTheme from "./${DEFAULT_THEME}/parameters-bundle.css.js";
|
14
13
|
|
14
|
+
registerThemePropertiesLoader("@ui5/webcomponents-theme-base", "${DEFAULT_THEME}", () => defaultThemeBase);
|
15
|
+
registerThemePropertiesLoader("${packageName}", "${DEFAULT_THEME}", () => defaultTheme);
|
15
16
|
`;
|
16
17
|
};
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
const proccessCSS = css => {
|
20
|
+
css = css.replace(/\.sapThemeMeta[\s\S]*?:root/, ":root");
|
21
|
+
css = css.replace(/\.background-image.*{.*}/, "");
|
22
|
+
css = css.replace(/\.sapContrast[ ]*:root[\s\S]*?}/, "");
|
23
|
+
css = css.replace(/--sapFontUrl.*\);?/, "");
|
24
|
+
return JSON.stringify(css);
|
25
|
+
}
|
24
26
|
|
25
|
-
|
27
|
+
module.exports = function (opts) {
|
28
|
+
opts = opts || {};
|
26
29
|
|
27
|
-
|
30
|
+
return {
|
31
|
+
postcssPlugin: 'postcss-css-to-esm',
|
32
|
+
Once (root) {
|
33
|
+
let css = root.toString();
|
34
|
+
css = proccessCSS(css);
|
28
35
|
|
29
|
-
|
36
|
+
const targetFile = root.source.input.from.replace(`/${opts.toReplace}/`, "/dist/generated/").replace(`\\${opts.toReplace}\\`, "\\dist\\generated\\");
|
37
|
+
mkdirp.sync(path.dirname(targetFile));
|
30
38
|
|
31
|
-
|
32
|
-
|
33
|
-
});
|
39
|
+
const filePath = `${targetFile}.js`;
|
40
|
+
const defaultTheme = opts.includeDefaultTheme ? getDefaultThemeCode(opts.packageName) : ``;
|
41
|
+
fs.writeFileSync(filePath, `${defaultTheme}export default ${css};`);
|
42
|
+
}
|
43
|
+
};
|
44
|
+
};
|
45
|
+
module.exports.postcss = true;
|
@@ -1,20 +1,31 @@
|
|
1
|
-
const postcss = require('postcss');
|
2
1
|
const fs = require('fs');
|
3
2
|
const path = require('path');
|
4
3
|
const mkdirp = require('mkdirp');
|
5
4
|
|
6
|
-
|
7
|
-
|
5
|
+
const proccessCSS = css => {
|
6
|
+
css = css.replace(/\.sapThemeMeta[\s\S]*?:root/, ":root");
|
7
|
+
css = css.replace(/\.background-image.*{.*}/, "");
|
8
|
+
css = css.replace(/\.sapContrast[ ]*:root[\s\S]*?}/, "");
|
9
|
+
css = css.replace(/--sapFontUrl.*\);?/, "");
|
10
|
+
return css;
|
11
|
+
}
|
8
12
|
|
9
|
-
|
10
|
-
|
11
|
-
const targetFile = root.source.input.from.replace(`/${opts.toReplace}/`, "/dist/generated/assets/").replace(`\\${opts.toReplace}\\`, "\\dist\\generated\\assets\\");
|
13
|
+
module.exports = function (opts) {
|
14
|
+
opts = opts || {};
|
12
15
|
|
13
|
-
|
16
|
+
return {
|
17
|
+
postcssPlugin: 'postcss-css-to-json',
|
18
|
+
Once (root) {
|
19
|
+
let css = root.toString();
|
20
|
+
css = proccessCSS(css);
|
14
21
|
|
15
|
-
|
22
|
+
const targetFile = root.source.input.from.replace(`/${opts.toReplace}/`, "/dist/generated/assets/").replace(`\\${opts.toReplace}\\`, "\\dist\\generated\\assets\\");
|
23
|
+
mkdirp.sync(path.dirname(targetFile));
|
16
24
|
|
17
|
-
|
25
|
+
const filePath = `${targetFile}.json`;
|
26
|
+
fs.writeFileSync(filePath, JSON.stringify({_: css}));
|
27
|
+
}
|
28
|
+
};
|
29
|
+
};
|
18
30
|
|
19
|
-
|
20
|
-
});
|
31
|
+
module.exports.postcss = true;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
const chokidar = require("chokidar");
|
2
|
+
const commandLineArgs = require("command-line-args");
|
3
|
+
const { exec } = require("child_process");
|
4
|
+
|
5
|
+
const options = commandLineArgs([
|
6
|
+
{ name: "srcFiles", type: String },
|
7
|
+
]);
|
8
|
+
|
9
|
+
const runPostcss = path => {
|
10
|
+
let command = `postcss ${path} --config config/postcss.components --base src --dir dist/css/`;
|
11
|
+
console.log(`Executing: ${command}`);
|
12
|
+
exec(command, (err, stdout, stderr) => {
|
13
|
+
if (err) {
|
14
|
+
console.log(`Could not run postcss for ${path}. Error: ${err}`);
|
15
|
+
}
|
16
|
+
});
|
17
|
+
|
18
|
+
command = `${command} -w`;
|
19
|
+
console.log(`Executing: ${command}`);
|
20
|
+
exec(command, (err, stdout, stderr) => {
|
21
|
+
if (err) {
|
22
|
+
console.log(`Could not run postcss in watch mode for ${path}. Error: ${err}`);
|
23
|
+
}
|
24
|
+
});
|
25
|
+
};
|
26
|
+
|
27
|
+
let ready = false; // Do nothing until the ready event has been fired (we don't want to recompile all files initially)
|
28
|
+
const watcher = chokidar.watch(options.srcFiles);
|
29
|
+
watcher.on("ready", () => {
|
30
|
+
ready = true; // Initial scan is over -> waiting for new files
|
31
|
+
});
|
32
|
+
watcher.on("add", path => {
|
33
|
+
if (ready) {
|
34
|
+
runPostcss(path);
|
35
|
+
}
|
36
|
+
});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const glob = require("glob");
|
3
|
+
|
4
|
+
const basePath = process.argv[2];
|
5
|
+
|
6
|
+
const replaceGlobalCoreUsage = (srcPath) => {
|
7
|
+
|
8
|
+
const original = fs.readFileSync(srcPath).toString();
|
9
|
+
let replaced = original.replace(/sap\.ui\.getCore\(\)/g, `Core`);
|
10
|
+
|
11
|
+
if (original !== replaced) {
|
12
|
+
replaced = `import Core from 'sap/ui/core/Core';
|
13
|
+
${replaced}`;
|
14
|
+
fs.writeFileSync(srcPath, replaced);
|
15
|
+
}
|
16
|
+
};
|
17
|
+
|
18
|
+
const fileNames = glob.sync(basePath + "**/*.js");
|
19
|
+
fileNames.forEach(replaceGlobalCoreUsage);
|
20
|
+
console.log("Success: Replaced global core usage in:", basePath);
|
@@ -0,0 +1,44 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const path = require("path");
|
3
|
+
const glob = require("glob");
|
4
|
+
|
5
|
+
const getTag = file => {
|
6
|
+
const fileContent = String(fs.readFileSync(file)).replace(/\n/g, "");
|
7
|
+
const matches = fileContent.match(/\btag\b:\s*\"(.*?)\"/);
|
8
|
+
return matches ? matches[1] : undefined;
|
9
|
+
};
|
10
|
+
|
11
|
+
const getAltTag = file => {
|
12
|
+
const fileContent = String(fs.readFileSync(file)).replace(/\n/g, "");
|
13
|
+
const matches = fileContent.match(/\baltTag\b:\s*\"(.*?)\"/);
|
14
|
+
return matches ? matches[1] : undefined;
|
15
|
+
};
|
16
|
+
|
17
|
+
const getPackageTags = (packageDir) => {
|
18
|
+
const srcDir = path.join(packageDir, "src/");
|
19
|
+
return glob.sync(path.join(srcDir, "/**/*.js")).flatMap(file => {
|
20
|
+
const tag = getTag(file);
|
21
|
+
const altTag = getAltTag(file);
|
22
|
+
return [tag, altTag];
|
23
|
+
}).filter(item => !!item);
|
24
|
+
};
|
25
|
+
|
26
|
+
const isComponentsPackage = (packageFileContent) => {
|
27
|
+
return packageFileContent.ui5 && packageFileContent.ui5.webComponentsPackage;
|
28
|
+
};
|
29
|
+
|
30
|
+
const getDepComponentPackages = packageDir => {
|
31
|
+
const packageFile = path.join(packageDir, "package.json");
|
32
|
+
const packageFileContent = JSON.parse(fs.readFileSync(packageFile));
|
33
|
+
if (!isComponentsPackage(packageFileContent)) {
|
34
|
+
return [];
|
35
|
+
}
|
36
|
+
|
37
|
+
return Object.keys(packageFileContent.dependencies || {}).map(dep => path.dirname(require.resolve(path.join(dep, "package.json"))));
|
38
|
+
};
|
39
|
+
|
40
|
+
const getAllTags = (packageDir) => {
|
41
|
+
return getPackageTags(packageDir).concat(getDepComponentPackages(packageDir).flatMap(getPackageTags));
|
42
|
+
};
|
43
|
+
|
44
|
+
module.exports = getAllTags;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const path = require("path");
|
3
|
+
const glob = require("glob");
|
4
|
+
const getAllTags = require("./get-all-tags.js");
|
5
|
+
|
6
|
+
const tags = getAllTags(process.cwd());
|
7
|
+
|
8
|
+
const errors = [];
|
9
|
+
|
10
|
+
glob.sync(path.join(process.cwd(), "src/**/*.css")).forEach(file => {
|
11
|
+
let content = String(fs.readFileSync(file));
|
12
|
+
tags.forEach(tag => {
|
13
|
+
if (content.match(new RegExp(`(^|[^\.\-_A-Za-z0-9"\[])(${tag})([^\-_A-Za-z0-9]|$)`, "g"))) {
|
14
|
+
errors.push(`Warning! ${tag} found in ${file}`);
|
15
|
+
}
|
16
|
+
});
|
17
|
+
});
|
18
|
+
|
19
|
+
glob.sync(path.join(process.cwd(), "src/**/*.js")).forEach(file => {
|
20
|
+
let content = String(fs.readFileSync(file));
|
21
|
+
tags.forEach(tag => {
|
22
|
+
if (content.match(new RegExp(`querySelector[A-Za-z]*..${tag}`, "g"))) {
|
23
|
+
errors.push(`Warning! querySelector for ${tag} found in ${file}`);
|
24
|
+
}
|
25
|
+
});
|
26
|
+
});
|
27
|
+
|
28
|
+
if (errors.length) {
|
29
|
+
errors.forEach(error => console.log(error));
|
30
|
+
throw new Error("Errors found.");
|
31
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const path = require("path");
|
3
|
+
const glob = require("glob");
|
4
|
+
const getAllTags = require("./get-all-tags.js");
|
5
|
+
|
6
|
+
const root = process.argv[2];
|
7
|
+
const suffix = process.argv[3];
|
8
|
+
|
9
|
+
const tags = getAllTags(process.cwd());
|
10
|
+
|
11
|
+
// Replaces tags in HTML content, f.e. <ui5-button> with <ui5-button-ver> or </ui5-button> with </ui5-button-ver>
|
12
|
+
const replaceTagsHTML = content => {
|
13
|
+
tags.forEach(tag => {
|
14
|
+
content = content.replace(new RegExp(`(<\/?)(${tag})(\/?[> \t\n])`, "g"), `$1$2-${suffix}$3`);
|
15
|
+
});
|
16
|
+
return content;
|
17
|
+
};
|
18
|
+
|
19
|
+
// Replace tags in any content
|
20
|
+
const replaceTagsAny = content => {
|
21
|
+
tags.forEach(tag => {
|
22
|
+
content = content.replace(new RegExp(`(^|[^\-_A-Za-z0-9])(${tag})([^\-_A-Za-z0-9]|$)`, "g"), `$1$2-${suffix}$3`);
|
23
|
+
});
|
24
|
+
return content;
|
25
|
+
};
|
26
|
+
|
27
|
+
// Replace bundle names and HTML tag names in test pages
|
28
|
+
glob.sync(path.join(root, "/**/*.html")).forEach(file => {
|
29
|
+
let content = String(fs.readFileSync(file));
|
30
|
+
content = content.replace(/bundle\.(.*?)\.js/g, `bundle.scoped.$1.js`);
|
31
|
+
content = replaceTagsHTML(content);
|
32
|
+
fs.writeFileSync(file, content);
|
33
|
+
});
|
34
|
+
|
35
|
+
// Replace tag names everywhere
|
36
|
+
glob.sync(path.join(root, "/**/*.{html,css,js}")).forEach(file => {
|
37
|
+
let content = String(fs.readFileSync(file));
|
38
|
+
content = replaceTagsAny(content);
|
39
|
+
fs.writeFileSync(file, content);
|
40
|
+
});
|
@@ -0,0 +1,46 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const path = require("path");
|
3
|
+
const commandLineArgs = require("command-line-args");
|
4
|
+
const { exec } = require("child_process");
|
5
|
+
const colors = require("colors/safe");
|
6
|
+
const isPortReachable = require("is-port-reachable");
|
7
|
+
|
8
|
+
const options = commandLineArgs([
|
9
|
+
{ name: "port", type: Number },
|
10
|
+
{ name: "portStep", type: Number },
|
11
|
+
{ name: "packageName", type: String },
|
12
|
+
{ name: "dir", type: String },
|
13
|
+
{ name: "config", type: String },
|
14
|
+
]);
|
15
|
+
const serveConfig = path.join(__dirname, `serve.json`);
|
16
|
+
|
17
|
+
const requestPort = async () => {
|
18
|
+
const serveProcess = (await gen.next()).value;
|
19
|
+
serveProcess.stdout.on('data', data => {
|
20
|
+
const matches = data.match(/Accepting connections at .*?:(\d+)/);
|
21
|
+
if (matches) {
|
22
|
+
console.log(colors.yellow(`Reserved port ${matches[1]} for the ${options.packageName} package.`));
|
23
|
+
fs.writeFileSync(".port", matches[1]);
|
24
|
+
}
|
25
|
+
});
|
26
|
+
};
|
27
|
+
|
28
|
+
async function* serverGenerator(callback, port = 8080, step = 1) {
|
29
|
+
while (true) {
|
30
|
+
const portInUse = await isPortReachable(port, { host: "127.0.0.1" });
|
31
|
+
if (!portInUse) {
|
32
|
+
const command = `serve --config "${serveConfig}" --no-port-switching --no-clipboard -l ${port} ${options.dir}`;
|
33
|
+
console.log(colors.yellow(`Executing: ${command}`));
|
34
|
+
const serveProcess = exec(command, (err) => {
|
35
|
+
console.log(colors.yellow(`Port ${port} already in use.`));
|
36
|
+
callback();
|
37
|
+
});
|
38
|
+
yield serveProcess;
|
39
|
+
}
|
40
|
+
port += step;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
const gen = serverGenerator(requestPort, options.port, options.portStep);
|
45
|
+
|
46
|
+
requestPort();
|
File without changes
|
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"name": "@ui5/webcomponents-tools",
|
3
|
+
"version": "1.0.0-rc.8",
|
4
|
+
"lockfileVersion": 1,
|
5
|
+
"requires": true,
|
6
|
+
"dependencies": {
|
7
|
+
"balanced-match": {
|
8
|
+
"version": "1.0.0",
|
9
|
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
|
10
|
+
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
|
11
|
+
"dev": true
|
12
|
+
},
|
13
|
+
"brace-expansion": {
|
14
|
+
"version": "1.1.11",
|
15
|
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
16
|
+
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
17
|
+
"dev": true,
|
18
|
+
"requires": {
|
19
|
+
"balanced-match": "^1.0.0",
|
20
|
+
"concat-map": "0.0.1"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"concat-map": {
|
24
|
+
"version": "0.0.1",
|
25
|
+
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
26
|
+
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
|
27
|
+
"dev": true
|
28
|
+
},
|
29
|
+
"minimatch": {
|
30
|
+
"version": "3.0.4",
|
31
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
32
|
+
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
33
|
+
"dev": true,
|
34
|
+
"requires": {
|
35
|
+
"brace-expansion": "^1.1.7"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"recursive-readdir": {
|
39
|
+
"version": "2.2.2",
|
40
|
+
"resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.2.tgz",
|
41
|
+
"integrity": "sha512-nRCcW9Sj7NuZwa2XvH9co8NPeXUBhZP7CRKJtU+cS6PW9FpCIFoI5ib0NT1ZrbNuPoRy0ylyCaUL8Gih4LSyFg==",
|
42
|
+
"dev": true,
|
43
|
+
"requires": {
|
44
|
+
"minimatch": "3.0.4"
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
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-6d98d0c29",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -22,61 +22,63 @@
|
|
22
22
|
"directory": "packages/tools"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@babel/cli": "^7.
|
26
|
-
"@babel/core": "^7.
|
27
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
28
|
-
"@babel/preset-env": "^7.
|
29
|
-
"@
|
30
|
-
"@
|
31
|
-
"@
|
32
|
-
"@
|
33
|
-
"@wdio/
|
34
|
-
"@wdio/
|
35
|
-
"@
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
25
|
+
"@babel/cli": "^7.13.10",
|
26
|
+
"@babel/core": "^7.13.10",
|
27
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
|
28
|
+
"@babel/preset-env": "^7.13.10",
|
29
|
+
"@rollup/plugin-babel": "^5.3.0",
|
30
|
+
"@rollup/plugin-json": "^4.1.0",
|
31
|
+
"@rollup/plugin-node-resolve": "^11.2.0",
|
32
|
+
"@rollup/plugin-url": "^6.0.0",
|
33
|
+
"@wdio/cli": "^7.2.0",
|
34
|
+
"@wdio/dot-reporter": "^7.2.0",
|
35
|
+
"@wdio/local-runner": "^7.2.0",
|
36
|
+
"@wdio/mocha-framework": "^7.2.0",
|
37
|
+
"@wdio/spec-reporter": "^7.2.0",
|
38
|
+
"@wdio/sync": "^7.2.0",
|
39
|
+
"@webcomponents/webcomponentsjs": "^2.5.0",
|
40
|
+
"chai": "^4.3.4",
|
41
|
+
"child_process": "^1.0.2",
|
42
|
+
"chokidar": "^3.5.1",
|
43
|
+
"chokidar-cli": "^2.1.0",
|
44
|
+
"clean-css": "^5.1.1",
|
45
|
+
"colors": "^1.4.0",
|
40
46
|
"command-line-args": "^5.1.1",
|
41
|
-
"concurrently": "^
|
42
|
-
"
|
43
|
-
"cross-env": "^5.2.0",
|
47
|
+
"concurrently": "^6.0.0",
|
48
|
+
"cross-env": "^7.0.3",
|
44
49
|
"cssnano": "^4.1.10",
|
45
|
-
"escodegen": "^
|
46
|
-
"eslint": "^
|
47
|
-
"eslint-config-airbnb-base": "^
|
48
|
-
"eslint-plugin-import": "^2.
|
50
|
+
"escodegen": "^2.0.0",
|
51
|
+
"eslint": "^7.22.0",
|
52
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
53
|
+
"eslint-plugin-import": "^2.22.1",
|
49
54
|
"esprima": "^4.0.1",
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
55
|
+
"folder-hash": "^4.0.1",
|
56
|
+
"getopts": "^2.3.0",
|
57
|
+
"glob": "^7.1.6",
|
58
|
+
"handlebars": "^4.7.7",
|
59
|
+
"is-port-reachable": "^3.0.0",
|
60
|
+
"jsdoc": "^3.6.6",
|
54
61
|
"json-beautify": "^1.1.1",
|
55
|
-
"mkdirp": "^0.
|
62
|
+
"mkdirp": "^1.0.4",
|
56
63
|
"npm-run-all": "^4.1.3",
|
57
|
-
"nps": "^5.
|
58
|
-
"postcss": "^
|
59
|
-
"postcss-cli": "^
|
60
|
-
"postcss-combine-duplicated-selectors": "^
|
61
|
-
"postcss-import": "^
|
62
|
-
"properties-reader": "^
|
63
|
-
"puppeteer": "^
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"rollup
|
67
|
-
"rollup-plugin-filesize": "^
|
68
|
-
"rollup-plugin-
|
69
|
-
"rollup-plugin-
|
70
|
-
"rollup-plugin-
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"rollup-plugin-terser": "^5.1.3",
|
74
|
-
"rollup-plugin-url": "^2.2.0",
|
75
|
-
"rollup-plugin-visualizer": "^0.9.2",
|
76
|
-
"serve": "^10.1.1",
|
77
|
-
"wdio-chromedriver-service": "^5.0.2"
|
64
|
+
"nps": "^5.10.0",
|
65
|
+
"postcss": "^8.2.10",
|
66
|
+
"postcss-cli": "^8.3.1",
|
67
|
+
"postcss-combine-duplicated-selectors": "^10.0.2",
|
68
|
+
"postcss-import": "^14.0.0",
|
69
|
+
"properties-reader": "^2.2.0",
|
70
|
+
"puppeteer": "^8.0.0",
|
71
|
+
"recursive-readdir": "^2.2.2",
|
72
|
+
"rimraf": "^3.0.2",
|
73
|
+
"rollup": "^2.41.4",
|
74
|
+
"rollup-plugin-filesize": "^9.1.1",
|
75
|
+
"rollup-plugin-livereload": "^2.0.0",
|
76
|
+
"rollup-plugin-string": "^3.0.0",
|
77
|
+
"rollup-plugin-terser": "^7.0.2",
|
78
|
+
"serve": "^12.0.0",
|
79
|
+
"wdio-chromedriver-service": "^7.0.0"
|
78
80
|
},
|
79
|
-
"
|
80
|
-
"
|
81
|
+
"peerDependencies": {
|
82
|
+
"chromedriver": "*"
|
81
83
|
}
|
82
84
|
}
|