Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cypress-ct-ui5-webc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build:definition": "tsc -p tsconfig.definition.json"
},
"devDependencies": {
"rimraf": "^3.0.2",
"rimraf": "^6.1.3",
"typescript": "^5.6.2"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"cypress": "15.18.1",
"cypress-real-events": "^1.15.0",
"eslint-plugin-cypress": "^3.4.0",
"rimraf": "^3.0.2",
"rimraf": "^6.1.3",
"typescript": "^5.6.2"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/localization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"prepublishOnly": "tsc -b"
},
"devDependencies": {
"@babel/core": "^7.24.6",
"@babel/generator": "^7.24.6",
"@babel/parser": "^7.24.6",
"@babel/core": "^7.29.7",
"@babel/generator": "^7.29.7",
"@babel/parser": "^7.29.7",
"@openui5/sap.ui.core": "1.146.0",
"@ui5/webcomponents-tools": "2.26.0-rc.0",
"babel-plugin-amd-to-esm": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/theming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@ui5/webcomponents-tools": "2.26.0-rc.0",
"globby": "^13.1.1",
"json-beautify": "^1.1.1",
"postcss": "^8.4.5",
"postcss": "^8.5.26",
"postcss-import": "^14.0.2"
}
}
4 changes: 2 additions & 2 deletions packages/tools/lib/cem/custom-elements-manifest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
displayDocumentationErrors,
toKebabCase
} from "./utils.mjs";
import { generateCustomData } from "cem-plugin-vs-code-custom-data-generator";
import { customElementVsCodePlugin } from "custom-element-vs-code-integration";
import { customElementJetBrainsPlugin } from "custom-element-jet-brains-integration";

const packageJSON = JSON.parse(fs.readFileSync("./package.json"));
Expand Down Expand Up @@ -628,7 +628,7 @@ export default {
});
}
},
wrapPluginForQuietMode(generateCustomData({ outdir: "dist", cssFileName: null, cssPropertiesDocs: false })),
wrapPluginForQuietMode(customElementVsCodePlugin({ outdir: "dist", cssFileName: null, cssPropertiesDocs: false })),
wrapPluginForQuietMode(customElementJetBrainsPlugin({ outdir: "dist", cssFileName: null, cssPropertiesDocs: false }))
],
};
4 changes: 2 additions & 2 deletions packages/tools/lib/copy-and-watch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE.
const fs = require('fs');
const path = require('path');
const chokidar = require('chokidar');
const glob = require('glob');
const { globSync } = require('glob');
const globParent = require('glob-parent');

/* CODE */
Expand Down Expand Up @@ -121,7 +121,7 @@ const copyAndWatchFn = async (argv) => {

// initial copy
if (!options['skip-initial-copy']) {
sources.forEach(s => glob.sync(s).forEach(copy));
sources.forEach(s => globSync(s).forEach(copy));
}

// watch
Expand Down
4 changes: 2 additions & 2 deletions packages/tools/lib/scoping/get-all-tags.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");
const path = require("path");
const glob = require("glob");
const { globSync } = require("glob");

const getTag = file => {
const fileContent = String(fs.readFileSync(file)).replace(/\n/g, "");
Expand All @@ -17,7 +17,7 @@ const getTag = file => {

const getPackageTags = (packageDir) => {
const srcDir = path.join(packageDir, "src/");
return glob.sync(path.join(srcDir, "/**/*.ts")).flatMap(file => {
return globSync(path.join(srcDir, "/**/*.ts")).flatMap(file => {
const tag = getTag(file);
return [tag];
}).filter(item => !!item);
Expand Down
6 changes: 3 additions & 3 deletions packages/tools/lib/scoping/lint-src.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");
const path = require("path");
const glob = require("glob");
const { globSync } = require("glob");
const getAllTags = require("./get-all-tags.js");

const tags = getAllTags(process.cwd());
Expand All @@ -9,7 +9,7 @@ const errors = [];

const removeComments = str => str.replaceAll(/\/\*[\s\S]*?\*\/|([^:]|^)\/\/.*$/gm, "");

glob.sync(path.join(process.cwd(), "src/**/*.css")).forEach(file => {
globSync(path.join(process.cwd(), "src/**/*.css")).forEach(file => {
let content = removeComments(String(fs.readFileSync(file)));
tags.forEach(tag => {
if (content.match(new RegExp(`(^|[^\.\-_A-Za-z0-9"\[])(${tag})([^\-_A-Za-z0-9]|$)`, "g"))) {
Expand All @@ -18,7 +18,7 @@ glob.sync(path.join(process.cwd(), "src/**/*.css")).forEach(file => {
});
});

glob.sync(path.join(process.cwd(), "src/**/*.ts")).forEach(file => {
globSync(path.join(process.cwd(), "src/**/*.ts")).forEach(file => {
let content = removeComments(String(fs.readFileSync(file)));
tags.forEach(tag => {
if (content.match(new RegExp(`querySelector[A-Za-z]*..${tag}`, "g"))) {
Expand Down
8 changes: 4 additions & 4 deletions packages/tools/lib/scoping/missing-dependencies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require("fs");
const glob = require("glob");
const { globSync } = require("glob");
const path = require("path");
const process = require("process");

Expand All @@ -10,8 +10,8 @@ const tagsToFiles = new Map();
const filesToTags = new Map();

let files = [
...glob.sync(path.join("packages/main/src/**/*.js")),
...glob.sync(path.join("packages/fiori/src/**/*.js")),
...globSync(path.join("packages/main/src/**/*.js")),
...globSync(path.join("packages/fiori/src/**/*.js")),
];
files.forEach(file => {
let matches = file.match(/([a-zA-Z0-9_]+)\.js$/);
Expand All @@ -27,7 +27,7 @@ files.forEach(file => {
});

// Process the package
files = glob.sync(path.join(projectPath, "src/**/*.js"));
files = globSync(path.join(projectPath, "src/**/*.js"));
tagsToFiles.forEach((file, tag) => {
const sourcePath = path.join(projectPath, "src/", `${file}.js`);
if (!fs.existsSync(sourcePath)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/tools/lib/scoping/report-tags-usage.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const fs = require("fs");
const glob = require("glob");
const { globSync } = require("glob");
const path = require("path");
const process = require("process");

// gather all tags from all files
const tags = new Set();
const files = glob.sync(path.join(process.argv[2], "src/**/*.js"));
const files = globSync(path.join(process.argv[2], "src/**/*.js"));
files.forEach(file => {
const content = `${fs.readFileSync(file)}`;
const matches = content.match(/tag: "(.*?)",/);
Expand Down
6 changes: 3 additions & 3 deletions packages/tools/lib/scoping/scope-test-pages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");
const path = require("path");
const glob = require("glob");
const { globSync } = require("glob");
const getAllTags = require("./get-all-tags.js");

const root = process.argv[2];
Expand All @@ -26,15 +26,15 @@ const replaceTagsAny = content => {
};

// Replace bundle names and HTML tag names in test pages
glob.sync(path.join(root, "/**/*.html")).forEach(file => {
globSync(path.join(root, "/**/*.html")).forEach(file => {
let content = String(fs.readFileSync(file));
content = content.replace("%VITE_BUNDLE_PATH%", "%VITE_BUNDLE_PATH_SCOPED%");
content = replaceTagsHTML(content);
fs.writeFileSync(file, content);
});

// Replace tag names everywhere
glob.sync(path.join(root, "/**/*.{html,css,js}")).forEach(file => {
globSync(path.join(root, "/**/*.{html,css,js}")).forEach(file => {
let content = String(fs.readFileSync(file));
content = replaceTagsAny(content);
fs.writeFileSync(file, content);
Expand Down
8 changes: 4 additions & 4 deletions packages/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"@wdio/spec-reporter": "^7.40.0",
"@wdio/static-server-service": "^7.40.0",
"ajv": "^8.12.0",
"cem-plugin-vs-code-custom-data-generator": "^1.4.2",
"chai": "^4.3.4",
"child_process": "^1.0.2",
"chokidar": "^3.6.0",
"command-line-args": "^5.1.1",
"comment-parser": "^1.4.0",
"cross-env": "^7.0.3",
"custom-element-jet-brains-integration": "^1.4.4",
"custom-element-vs-code-integration": "^1.5.0",
"dotenv": "^16.5.0",
"escodegen": "^2.0.0",
"eslint": "^7.22.0",
Expand All @@ -46,14 +46,14 @@
"eslint-plugin-jsx-no-leaked-values": "^0.1.24",
"esprima": "^4.0.1",
"getopts": "^2.3.0",
"glob": "^7.1.6",
"glob": "^13.0.6",
"glob-parent": "^6.0.2",
"globby": "^13.1.1",
"handlebars": "^4.7.7",
"handlebars": "^4.7.9",
"ignore": "^7.0.5",
"is-port-reachable": "^3.1.0",
"json-beautify": "^1.1.1",
"postcss": "^8.4.5",
"postcss": "^8.5.26",
"postcss-cli": "^9.1.0",
"postcss-selector-parser": "^6.0.10",
"prompts": "^2.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"raw-loader": "^4.0.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "^3.0.2",
"rimraf": "^6.1.3",
"tarts": "^2.0.1"
},
"devDependencies": {
Expand Down
Loading
Loading