@ui5/webcomponents-tools 1.2.6 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-tools",
3
- "version": "1.2.6",
3
+ "version": "1.4.0",
4
4
  "description": "UI5 Web Components: webcomponents.tools",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -21,21 +21,15 @@
21
21
  "directory": "packages/tools"
22
22
  },
23
23
  "dependencies": {
24
- "@babel/core": "^7.13.10",
25
- "@babel/preset-env": "^7.13.10",
26
- "@openui5/sap.ui.core": "1.95.0",
27
- "@rollup/plugin-babel": "^5.3.0",
28
- "@rollup/plugin-commonjs": "^21.0.1",
29
24
  "@rollup/plugin-json": "^4.1.0",
30
25
  "@rollup/plugin-node-resolve": "^13.0.5",
31
26
  "@rollup/plugin-replace": "^3.0.0",
32
- "@rollup/plugin-url": "^6.0.0",
33
27
  "@wdio/cli": "^7.12.2",
28
+ "@wdio/devtools-service": "^7.19.5",
34
29
  "@wdio/dot-reporter": "^7.10.1",
35
30
  "@wdio/local-runner": "^7.12.2",
36
31
  "@wdio/mocha-framework": "^7.12.2",
37
32
  "@wdio/spec-reporter": "^7.10.1",
38
- "@webcomponents/webcomponentsjs": "^2.5.0",
39
33
  "chai": "^4.3.4",
40
34
  "child_process": "^1.0.2",
41
35
  "chokidar": "^3.5.1",
@@ -50,10 +44,10 @@
50
44
  "eslint-config-airbnb-base": "^14.2.1",
51
45
  "eslint-plugin-import": "^2.22.1",
52
46
  "esprima": "^4.0.1",
53
- "folder-hash": "^4.0.1",
54
47
  "getopts": "^2.3.0",
55
48
  "glob": "^7.1.6",
56
49
  "glob-parent": "^6.0.2",
50
+ "globby": "^13.1.1",
57
51
  "handlebars": "^4.7.7",
58
52
  "is-port-reachable": "^3.1.0",
59
53
  "jsdoc": "^3.6.6",
@@ -62,19 +56,19 @@
62
56
  "nps": "^5.10.0",
63
57
  "postcss": "^8.4.5",
64
58
  "postcss-cli": "^9.1.0",
65
- "postcss-combine-duplicated-selectors": "^10.0.3",
66
59
  "postcss-import": "^14.0.2",
60
+ "postcss-selector-parser": "^6.0.10",
67
61
  "properties-reader": "^2.2.0",
68
62
  "recursive-readdir": "^2.2.2",
69
63
  "resolve": "^1.20.0",
70
64
  "rimraf": "^3.0.2",
71
65
  "rollup": "^2.41.4",
72
- "rollup-plugin-filesize": "^9.1.1",
73
66
  "rollup-plugin-livereload": "^2.0.0",
74
67
  "rollup-plugin-terser": "^7.0.2",
75
68
  "serve": "^12.0.0",
76
69
  "slash": "3.0.0",
77
- "wdio-chromedriver-service": "^7.0.0"
70
+ "wdio-chromedriver-service": "^7.0.0",
71
+ "zx": "^4.3.0"
78
72
  },
79
73
  "peerDependencies": {
80
74
  "chromedriver": "*"
@@ -1,10 +0,0 @@
1
- const config = {
2
- files: {
3
- exclude: ['serve.json']
4
- },
5
- folders: {
6
- exclude: ['resources']
7
- },
8
- };
9
-
10
- module.exports = config;
@@ -1,19 +0,0 @@
1
- const fs = require("fs");
2
- const path = require("path");
3
- const process = require("process");
4
- const { hashElement } = require("folder-hash");
5
- const config = require("./config.js");
6
-
7
- const inputDir = path.normalize(process.argv[2]);
8
- const outputFileName = path.normalize(process.argv[3]);
9
-
10
- const generateHash = async (inputDir, outputFileName) => {
11
- const result = await hashElement(inputDir, config);
12
- const hash = result.hash;
13
- fs.writeFileSync(outputFileName, hash);
14
- return hash;
15
- };
16
-
17
- generateHash(inputDir, outputFileName).then(hash => {
18
- console.log(`Generated hash: ${hash}`);
19
- });
@@ -1,31 +0,0 @@
1
- const fs = require("fs");
2
- const path = require("path");
3
- const process = require("process");
4
- const { hashElement } = require("folder-hash");
5
- const config = require("./config.js");
6
-
7
- const inputDir = path.normalize(process.argv[2]);
8
- const hashFileName = path.normalize(process.argv[3]);
9
-
10
- const isUpToDate = async (inputDir, hashFileName) => {
11
- // No dist/ directory or no hash file
12
- if (!fs.existsSync(inputDir) || !fs.existsSync(hashFileName)) {
13
- return false;
14
- }
15
-
16
- // Empty hash file
17
- const existingHash = `${fs.readFileSync(hashFileName)}`;
18
- if (!existingHash) {
19
- return false;
20
- }
21
-
22
- // Calculate the hash of the dist/ directory
23
- const result = await hashElement(inputDir, config);
24
- const newHash = result.hash;
25
-
26
- return newHash === existingHash;
27
- };
28
-
29
- isUpToDate(inputDir, hashFileName).then(upToDate => {
30
- process.exit(upToDate ? 0 : 1); // 0 means success (it is up to date), 1 means failure (must rebuild the dist/)
31
- });
@@ -1,5 +0,0 @@
1
- const mkdirp = require("mkdirp");
2
- const fs = require("fs");
3
-
4
- mkdirp.sync("dist/webcomponentsjs/");
5
- fs.writeFileSync("dist/webcomponentsjs/webcomponents-loader.js", "");