@blockquote/create-wc 2.4.2 → 2.5.1
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 +6 -6
- package/src/common-linting/templates/package.json +12 -12
- package/src/common-repo/templates/package.json +10 -10
- package/src/common-repo/templates/static/vite.config.js +1 -6
- package/src/testing/templates/my-el.test.js +18 -4
- package/src/testing-ts/templates/my-el.test.ts +18 -4
- package/src/wc-lit-element-ts/templates/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit",
|
|
@@ -47,17 +47,17 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@open-wc/create": "^0.38.151",
|
|
50
|
-
"chalk": "^5.
|
|
50
|
+
"chalk": "^5.6.2",
|
|
51
51
|
"command-line-args": "^6.0.1",
|
|
52
52
|
"prompts": "^2.4.2",
|
|
53
|
-
"semver": "^7.7.
|
|
53
|
+
"semver": "^7.7.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@eslint/compat": "^1.
|
|
56
|
+
"@eslint/compat": "^1.4.0",
|
|
57
57
|
"eslint-plugin-html": "^8.1.3",
|
|
58
58
|
"@open-wc/eslint-config": "^13.0.0",
|
|
59
|
-
"eslint": "^9.
|
|
60
|
-
"eslint-config-prettier": "^10.1.
|
|
59
|
+
"eslint": "^9.38.0",
|
|
60
|
+
"eslint-config-prettier": "^10.1.8",
|
|
61
61
|
"prettier": "^3.6.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
@@ -68,22 +68,22 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
72
|
-
"@html-eslint/parser": "^0.
|
|
73
|
-
"eslint": "^9.
|
|
74
|
-
"eslint-config-prettier": "^10.1.
|
|
71
|
+
"@html-eslint/eslint-plugin": "^0.47.0",
|
|
72
|
+
"@html-eslint/parser": "^0.47.0",
|
|
73
|
+
"eslint": "^9.38.0",
|
|
74
|
+
"eslint-config-prettier": "^10.1.8",
|
|
75
75
|
"eslint-plugin-html": "^8.1.3",
|
|
76
76
|
"eslint-plugin-import": "^2.32.0",
|
|
77
77
|
"eslint-plugin-lit": "^2.1.1",
|
|
78
|
-
"eslint-plugin-lit-a11y": "^5.1.
|
|
79
|
-
"eslint-plugin-wc": "^3.0.
|
|
80
|
-
"@typescript-eslint/parser": "^8.
|
|
81
|
-
"typescript-eslint": "^8.
|
|
82
|
-
"globals": "^16.
|
|
78
|
+
"eslint-plugin-lit-a11y": "^5.1.1",
|
|
79
|
+
"eslint-plugin-wc": "^3.0.2",
|
|
80
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
81
|
+
"typescript-eslint": "^8.46.2",
|
|
82
|
+
"globals": "^16.4.0",
|
|
83
83
|
"husky": "^9.1.7",
|
|
84
|
-
"lint-staged": "^16.
|
|
84
|
+
"lint-staged": "^16.2.5",
|
|
85
85
|
"prettier": "^3.6.2",
|
|
86
|
-
"stylelint": "^16.
|
|
87
|
-
"stylelint-config-standard-scss": "^
|
|
86
|
+
"stylelint": "^16.25.0",
|
|
87
|
+
"stylelint-config-standard-scss": "^16.0.0"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@blockquote/cem-to-markdown-readme": "^1.0.0",
|
|
31
|
-
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
|
32
31
|
"@blockquote/rollup-plugin-total-bundlesize": "^2.2.0",
|
|
33
32
|
"@blockquote/sass-style-template": "^5.0.2",
|
|
34
|
-
"@custom-elements-manifest/analyzer": "^0.10.
|
|
33
|
+
"@custom-elements-manifest/analyzer": "^0.10.10",
|
|
35
34
|
"@open-wc/semantic-dom-diff": "^0.20.1",
|
|
36
|
-
"@open-wc/testing": "^
|
|
37
|
-
"playwright": "^1.
|
|
38
|
-
"postcss-html": "1.8.0",
|
|
39
|
-
"postcss-lit": "^1.
|
|
35
|
+
"@open-wc/testing-helpers": "^3.0.1",
|
|
36
|
+
"playwright": "^1.56.1",
|
|
37
|
+
"postcss-html": "^1.8.0",
|
|
38
|
+
"postcss-lit": "^1.3.1",
|
|
40
39
|
"@types/mocha": "^10.0.10",
|
|
41
40
|
"rollup-plugin-copy": "^3.5.0",
|
|
42
|
-
"rollup-plugin-node-externals": "^8.
|
|
43
|
-
"tinyglobby": "^0.2.
|
|
44
|
-
"
|
|
41
|
+
"rollup-plugin-node-externals": "^8.1.1",
|
|
42
|
+
"tinyglobby": "^0.2.15",
|
|
43
|
+
"chai-a11y-axe": "^1.5.0",
|
|
44
|
+
"concurrently": "^9.2.1",
|
|
45
45
|
"sort-package-json": "^3.4.0",
|
|
46
46
|
"@vitest/browser": "^3.2.4",
|
|
47
47
|
"@vitest/coverage-istanbul": "^3.2.4",
|
|
48
48
|
"@vitest/coverage-v8": "^3.2.4",
|
|
49
49
|
"@vitest/ui": "^3.2.4",
|
|
50
50
|
"vitest": "^3.2.4",
|
|
51
|
-
"vite": "^7.
|
|
51
|
+
"vite": "^7.1.11"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
@@ -2,7 +2,6 @@ import {defineConfig} from 'vite';
|
|
|
2
2
|
import {globSync} from 'tinyglobby';
|
|
3
3
|
import copy from 'rollup-plugin-copy';
|
|
4
4
|
import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
|
|
5
|
-
import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';
|
|
6
5
|
|
|
7
6
|
const OUT_DIR = 'dev';
|
|
8
7
|
const ENTRIES_DIR = 'demo';
|
|
@@ -74,11 +73,7 @@ export default defineConfig({
|
|
|
74
73
|
exclude: ['**/src/**/index.*', '**/src/styles/'],
|
|
75
74
|
},
|
|
76
75
|
},
|
|
77
|
-
plugins: [
|
|
78
|
-
externalizeSourceDependencies(['/__web-dev-server__web-socket.js']),
|
|
79
|
-
copy(copyConfig),
|
|
80
|
-
totalBundlesize(),
|
|
81
|
-
],
|
|
76
|
+
plugins: [copy(copyConfig), totalBundlesize()],
|
|
82
77
|
optimizeDeps: {
|
|
83
78
|
exclude: ['lit', 'lit-html'],
|
|
84
79
|
},
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
suite,
|
|
3
|
+
test,
|
|
4
|
+
assert,
|
|
5
|
+
expect,
|
|
6
|
+
beforeAll,
|
|
7
|
+
afterAll,
|
|
8
|
+
beforeEach,
|
|
9
|
+
afterEach,
|
|
10
|
+
vi,
|
|
11
|
+
chai,
|
|
12
|
+
} from 'vitest';
|
|
2
13
|
import {getElementLocatorSelectors} from '@vitest/browser/utils';
|
|
3
14
|
import {html} from 'lit';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
15
|
+
import {chaiA11yAxe} from 'chai-a11y-axe';
|
|
16
|
+
import {fixture, fixtureCleanup} from '@open-wc/testing-helpers';
|
|
17
|
+
import {getDiffableHTML} from '@open-wc/semantic-dom-diff/get-diffable-html.js';
|
|
6
18
|
import '../src/define/<%= tagName %>.js';
|
|
7
19
|
|
|
20
|
+
chai.use(chaiA11yAxe);
|
|
21
|
+
|
|
8
22
|
suite('<%= className %>', () => {
|
|
9
23
|
/**
|
|
10
24
|
* @type {import('../src/index').<%= className %>}
|
|
@@ -40,7 +54,7 @@ suite('<%= className %>', () => {
|
|
|
40
54
|
});
|
|
41
55
|
|
|
42
56
|
test('a11y', async () => {
|
|
43
|
-
await
|
|
57
|
+
await assert.isAccessible(el);
|
|
44
58
|
});
|
|
45
59
|
});
|
|
46
60
|
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
suite,
|
|
3
|
+
test,
|
|
4
|
+
assert,
|
|
5
|
+
expect,
|
|
6
|
+
beforeAll,
|
|
7
|
+
afterAll,
|
|
8
|
+
beforeEach,
|
|
9
|
+
afterEach,
|
|
10
|
+
vi,
|
|
11
|
+
chai,
|
|
12
|
+
} from 'vitest';
|
|
2
13
|
import {type LocatorSelectors} from '@vitest/browser/context';
|
|
3
14
|
import {getElementLocatorSelectors} from '@vitest/browser/utils';
|
|
4
15
|
import {html} from 'lit';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
16
|
+
import {chaiA11yAxe} from 'chai-a11y-axe';
|
|
17
|
+
import {fixture, fixtureCleanup} from '@open-wc/testing-helpers';
|
|
18
|
+
import {getDiffableHTML} from '@open-wc/semantic-dom-diff/get-diffable-html.js';
|
|
7
19
|
import {<%= className %>} from '../src/<%= className %>.js';
|
|
8
20
|
import '../src/define/<%= tagName %>.js';
|
|
9
21
|
|
|
22
|
+
chai.use(chaiA11yAxe);
|
|
23
|
+
|
|
10
24
|
suite('<%= className %>', () => {
|
|
11
25
|
let el: <%= className %>;
|
|
12
26
|
let elShadowRoot: string;
|
|
@@ -39,7 +53,7 @@ suite('<%= className %>', () => {
|
|
|
39
53
|
});
|
|
40
54
|
|
|
41
55
|
test('a11y', async () => {
|
|
42
|
-
await
|
|
56
|
+
await assert.isAccessible(el);
|
|
43
57
|
});
|
|
44
58
|
});
|
|
45
59
|
|