@ui5/webcomponents-tools 1.12.0-rc.1 → 1.12.0-rc.3
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 +19 -0
- package/components-package/eslint.js +34 -28
- package/components-package/nps.js +9 -0
- package/components-package/wdio.js +9 -2
- package/package.json +9 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,25 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
# [1.12.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.2...v1.12.0-rc.3) (2023-03-30)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
# [1.12.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.1...v1.12.0-rc.2) (2023-03-23)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* fix eslint for JS 3rd party projects ([#6725](https://github.com/SAP/ui5-webcomponents/issues/6725)) ([215a888](https://github.com/SAP/ui5-webcomponents/commit/215a888b006e46d431edd6324812b9d39249aef4))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
# [1.12.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.0...v1.12.0-rc.1) (2023-03-16)
|
7
26
|
|
8
27
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
@@ -1,3 +1,36 @@
|
|
1
|
+
const fs = require("fs");
|
2
|
+
const path = require("path");
|
3
|
+
const tsMode = fs.existsSync(path.join(process.cwd(), "tsconfig.json"));
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Typescript Rules
|
7
|
+
*/
|
8
|
+
const overrides = tsMode ? [{
|
9
|
+
files: ["*.ts"],
|
10
|
+
parser: "@typescript-eslint/parser",
|
11
|
+
plugins: ["@typescript-eslint"],
|
12
|
+
extends: [
|
13
|
+
"plugin:@typescript-eslint/recommended",
|
14
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
15
|
+
],
|
16
|
+
parserOptions: {
|
17
|
+
"project": ["./tsconfig.json", "./packages/*/tsconfig.json"],
|
18
|
+
},
|
19
|
+
rules: {
|
20
|
+
"no-shadow": "off",
|
21
|
+
"@typescript-eslint/no-shadow": ["error"],
|
22
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
23
|
+
"@typescript-eslint/no-floating-promises": "off",
|
24
|
+
"@typescript-eslint/no-explicit-any": "off",
|
25
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
26
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
27
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
28
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
29
|
+
"@typescript-eslint/no-empty-function": "off",
|
30
|
+
"lines-between-class-members": "off",
|
31
|
+
}
|
32
|
+
}] : [];
|
33
|
+
|
1
34
|
module.exports = {
|
2
35
|
"env": {
|
3
36
|
"browser": true,
|
@@ -5,34 +38,7 @@ module.exports = {
|
|
5
38
|
},
|
6
39
|
"root": true,
|
7
40
|
"extends": "airbnb-base",
|
8
|
-
overrides
|
9
|
-
files: ["*.ts"],
|
10
|
-
parser: "@typescript-eslint/parser",
|
11
|
-
plugins: ["@typescript-eslint"],
|
12
|
-
extends: [
|
13
|
-
"plugin:@typescript-eslint/recommended",
|
14
|
-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
15
|
-
],
|
16
|
-
parserOptions: {
|
17
|
-
"project": ["./tsconfig.json", "./packages/*/tsconfig.json"],
|
18
|
-
},
|
19
|
-
/**
|
20
|
-
* Typescript Rules
|
21
|
-
*/
|
22
|
-
rules: {
|
23
|
-
"no-shadow": "off",
|
24
|
-
"@typescript-eslint/no-shadow": ["error"],
|
25
|
-
"@typescript-eslint/no-unsafe-member-access": "off",
|
26
|
-
"@typescript-eslint/no-floating-promises": "off",
|
27
|
-
"@typescript-eslint/no-explicit-any": "off",
|
28
|
-
"@typescript-eslint/no-unsafe-assignment": "off",
|
29
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
30
|
-
"@typescript-eslint/no-unsafe-call": "off",
|
31
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
32
|
-
"@typescript-eslint/no-empty-function": "off",
|
33
|
-
"lines-between-class-members": "off",
|
34
|
-
}
|
35
|
-
}],
|
41
|
+
overrides,
|
36
42
|
"parserOptions": {
|
37
43
|
"ecmaVersion": 2018,
|
38
44
|
"sourceType": "module"
|
@@ -20,6 +20,15 @@ const getScripts = (options) => {
|
|
20
20
|
const tsCrossEnv = tsOption ? "cross-env UI5_TS=true" : "";
|
21
21
|
const copySrcGenerated = tsOption ? "" : "copy.srcGenerated";
|
22
22
|
|
23
|
+
if (tsOption) {
|
24
|
+
try {
|
25
|
+
require("typescript");
|
26
|
+
} catch(e) {
|
27
|
+
console.error(`TypeScript is not found. Try to install it by running \`npm install --save-dev typescript\` if you are using npm or by running \`yarn add --dev typescript\` if you are using yarn.`);
|
28
|
+
process.exit(e.code);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
23
32
|
let viteConfig;
|
24
33
|
if (fs.existsSync("config/vite.config.js")) {
|
25
34
|
// old project setup where config file is in separate folder
|
@@ -56,8 +56,15 @@ exports.config = {
|
|
56
56
|
'goog:chromeOptions': {
|
57
57
|
// to run chrome headless the following flags are required
|
58
58
|
// (see https://developers.google.com/web/updates/2017/04/headless-chrome)
|
59
|
-
args: [
|
60
|
-
|
59
|
+
args: [
|
60
|
+
'headless', // start in headless mode
|
61
|
+
'start-maximized', // maximize the window
|
62
|
+
'no-sandbox', // disable sandbox isolation
|
63
|
+
'disable-infobars', // disable the infos
|
64
|
+
'disable-gpu', // on windows disable gpu hw acceleration
|
65
|
+
'disable-extensions', // disable extensions
|
66
|
+
'disable-dev-shm-usage' // disable /dev/shm in CI
|
67
|
+
],
|
61
68
|
}
|
62
69
|
}],
|
63
70
|
//
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "1.12.0-rc.
|
3
|
+
"version": "1.12.0-rc.3",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -67,10 +67,16 @@
|
|
67
67
|
"zx": "^4.3.0"
|
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"
|
74
80
|
},
|
75
|
-
"gitHead": "
|
81
|
+
"gitHead": "ae6ca4708b81a04de42ec2be50383fa80630e250"
|
76
82
|
}
|