@blockquote/create-wc 1.22.1 → 1.22.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/README.md +20 -27
- package/package.json +6 -6
- package/src/common-linting/templates/package.json +3 -3
- package/src/common-repo/templates/package.json +2 -2
- package/src/common-testing-wtr/templates/static/web-test-runner.config.mjs +3 -3
- package/src/linting-eslint-ts/templates/package.json +2 -2
- package/src/testing/templates/package.json +1 -1
- package/src/testing-ts/templates/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,6 +55,7 @@ npm run format
|
|
|
55
55
|
|
|
56
56
|
### - Testing with Web Test Runner
|
|
57
57
|
|
|
58
|
+
- playwright
|
|
58
59
|
- mocha-style reporter
|
|
59
60
|
- coverage config
|
|
60
61
|
- TDD option
|
|
@@ -64,8 +65,9 @@ npm run format
|
|
|
64
65
|
### web-test-runner.config
|
|
65
66
|
|
|
66
67
|
```js
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
68
|
+
import { playwrightLauncher } from '@web/test-runner-playwright';
|
|
69
|
+
import { defaultReporter, summaryReporter } from '@web/test-runner';
|
|
70
|
+
import { coverageTableReporter } from '@blockquote/coverage-table-reporter'
|
|
69
71
|
|
|
70
72
|
const outDir = process.env.OUTDIR || '.';
|
|
71
73
|
|
|
@@ -76,9 +78,22 @@ export default ({
|
|
|
76
78
|
exportConditions: ['browser', 'development'],
|
|
77
79
|
},
|
|
78
80
|
|
|
81
|
+
/** Browsers to run tests on */
|
|
82
|
+
browsers: [
|
|
83
|
+
playwrightLauncher({ product: 'chromium' }),
|
|
84
|
+
playwrightLauncher({ product: 'webkit' }),
|
|
85
|
+
],
|
|
86
|
+
|
|
87
|
+
/** Amount of browsers to run concurrently */
|
|
88
|
+
concurrentBrowsers: 2,
|
|
89
|
+
|
|
90
|
+
/** Amount of test files per browser to test concurrently */
|
|
91
|
+
concurrency: 1,
|
|
92
|
+
|
|
79
93
|
reporters: [
|
|
80
94
|
defaultReporter(),
|
|
81
|
-
|
|
95
|
+
summaryReporter(),
|
|
96
|
+
coverageTableReporter()
|
|
82
97
|
],
|
|
83
98
|
|
|
84
99
|
coverageConfig: {
|
|
@@ -95,6 +110,8 @@ export default ({
|
|
|
95
110
|
testFramework: {
|
|
96
111
|
config: {
|
|
97
112
|
ui: 'tdd',
|
|
113
|
+
timeout: 4000,
|
|
114
|
+
reporter: 'html'
|
|
98
115
|
},
|
|
99
116
|
},
|
|
100
117
|
|
|
@@ -179,30 +196,6 @@ Example:
|
|
|
179
196
|
<hr>
|
|
180
197
|
<br>
|
|
181
198
|
|
|
182
|
-
## Different major versions:
|
|
183
|
-
|
|
184
|
-
```json
|
|
185
|
-
"devDependencies": {
|
|
186
|
-
"eslint": "^8.0.0",
|
|
187
|
-
"@open-wc/eslint-config": "^7.0.0",
|
|
188
|
-
...
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
open-wc scaffold
|
|
194
|
-
|
|
195
|
-
```json
|
|
196
|
-
"devDependencies": {
|
|
197
|
-
"eslint": "^7.32.0",
|
|
198
|
-
"@open-wc/eslint-config": "^4.3.0",
|
|
199
|
-
...
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
<hr>
|
|
205
|
-
|
|
206
199
|
## File structure JS & TS
|
|
207
200
|
|
|
208
201
|
```css
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.3",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LitElement",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"trailingComma": "all"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@open-wc/create": "^0.38.
|
|
42
|
+
"@open-wc/create": "^0.38.69",
|
|
43
43
|
"chalk": "^5.2.0",
|
|
44
44
|
"command-line-args": "^5.2.1",
|
|
45
45
|
"prompts": "^2.4.2",
|
|
46
46
|
"semver": "^7.3.8"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@open-wc/eslint-config": "^9.
|
|
50
|
-
"eslint": "^8.
|
|
51
|
-
"eslint-config-prettier": "^8.
|
|
52
|
-
"prettier": "^2.8.
|
|
49
|
+
"@open-wc/eslint-config": "^9.2.2",
|
|
50
|
+
"eslint": "^8.36.0",
|
|
51
|
+
"eslint-config-prettier": "^8.7.0",
|
|
52
|
+
"prettier": "^2.8.4"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=14.15.0"
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@open-wc/eslint-config": "^9.2.2",
|
|
96
|
-
"eslint": "^8.
|
|
97
|
-
"eslint-config-prettier": "^8.
|
|
96
|
+
"eslint": "^8.36.0",
|
|
97
|
+
"eslint-config-prettier": "^8.7.0",
|
|
98
98
|
"eslint-plugin-log-filenames": "^1.0.6",
|
|
99
99
|
"husky": "^4.3.8",
|
|
100
|
-
"lint-staged": "^13.
|
|
100
|
+
"lint-staged": "^13.2.0",
|
|
101
101
|
"prettier": "^2.8.4",
|
|
102
102
|
"stylelint": "^15.2.0",
|
|
103
103
|
"stylelint-config-standard-scss": "^7.0.1"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@blockquote/rollup-plugin-total-bundlesize": "^1.0.0",
|
|
28
28
|
"@blockquote/sass-style-template": "^3.0.1",
|
|
29
29
|
"@blockquote/coverage-table-reporter": "^1.0.0",
|
|
30
|
-
"@custom-elements-manifest/analyzer": "^0.6.
|
|
30
|
+
"@custom-elements-manifest/analyzer": "^0.6.9",
|
|
31
31
|
"@ungap/global-this": "^0.4.4",
|
|
32
|
-
"@web/dev-server": "^0.1.
|
|
32
|
+
"@web/dev-server": "^0.1.36",
|
|
33
33
|
"@web/rollup-plugin-html": "^1.11.0",
|
|
34
34
|
"@webcomponents/shadycss": "^1.11.1",
|
|
35
35
|
"@webcomponents/webcomponentsjs": "^2.7.0",
|
|
@@ -28,12 +28,11 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
|
|
28
28
|
/** Amount of test files per browser to test concurrently */
|
|
29
29
|
concurrency: 1,
|
|
30
30
|
|
|
31
|
-
reporters: [
|
|
31
|
+
reporters: [summaryReporter(), defaultReporter(), coverageTableReporter()],
|
|
32
32
|
|
|
33
33
|
coverageConfig: {
|
|
34
|
-
report: true,
|
|
35
34
|
reportDir: `${outDir}/test/coverage`,
|
|
36
|
-
reporters: ['
|
|
35
|
+
reporters: ['lcov', 'lcovonly', 'json'],
|
|
37
36
|
threshold: {
|
|
38
37
|
statements: 80,
|
|
39
38
|
branches: 80,
|
|
@@ -47,6 +46,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
|
|
47
46
|
config: {
|
|
48
47
|
ui: 'tdd',
|
|
49
48
|
timeout: 4000,
|
|
49
|
+
reporter: 'html',
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
|