@blockquote/create-wc 2.0.2 → 2.2.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 +2 -2
- package/src/common-linting/templates/package.json +3 -3
- package/src/common-repo/templates/package.json +9 -9
- package/src/common-repo/templates/static/vite.config.js +13 -10
- package/src/testing/templates/my-el.test.js +4 -4
- package/src/testing-ts/templates/my-el.test.ts +4 -4
- package/src/wc-lit-element-ts/templates/vite-env.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@open-wc/create": "^0.38.151",
|
|
54
|
-
"chalk": "^5.4.
|
|
54
|
+
"chalk": "^5.4.1",
|
|
55
55
|
"command-line-args": "^6.0.1",
|
|
56
56
|
"prompts": "^2.4.2",
|
|
57
57
|
"semver": "^7.6.3"
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"eslint-plugin-lit": "^1.15.0",
|
|
54
54
|
"eslint-plugin-lit-a11y": "^4.1.4",
|
|
55
55
|
"eslint-plugin-wc": "^2.2.0",
|
|
56
|
-
"@typescript-eslint/parser": "^8.18.
|
|
57
|
-
"typescript-eslint": "^8.18.
|
|
56
|
+
"@typescript-eslint/parser": "^8.18.2",
|
|
57
|
+
"typescript-eslint": "^8.18.2",
|
|
58
58
|
"globals": "^15.14.0",
|
|
59
59
|
"husky": "^9.1.7",
|
|
60
|
-
"lint-staged": "^15.
|
|
60
|
+
"lint-staged": "^15.3.0",
|
|
61
61
|
"prettier": "^3.4.2",
|
|
62
62
|
"stylelint": "^16.12.0",
|
|
63
63
|
"stylelint-config-standard-scss": "^14.0.0"
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"sort:package": "npx sort-package-json",
|
|
21
21
|
"postinstall": "npm run sort:package",
|
|
22
22
|
"prepare": "husky",
|
|
23
|
-
"test": "vitest"
|
|
23
|
+
"test": "vitest --run --browser.headless",
|
|
24
|
+
"test:watch": "vitest"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"lit": "^3.2.1"
|
|
@@ -35,18 +36,17 @@
|
|
|
35
36
|
"@open-wc/testing": "^4.0.0",
|
|
36
37
|
"playwright": "^1.49.1",
|
|
37
38
|
"@types/mocha": "^10.0.10",
|
|
38
|
-
"@rollup/plugin-multi-entry": "^6.0.1",
|
|
39
39
|
"rollup-plugin-copy": "^3.5.0",
|
|
40
40
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
41
41
|
"tinyglobby": "^0.2.10",
|
|
42
|
-
"concurrently": "^9.1.
|
|
42
|
+
"concurrently": "^9.1.1",
|
|
43
43
|
"sort-package-json": "^2.12.0",
|
|
44
|
-
"@vitest/browser": "^3.0.0-beta.
|
|
45
|
-
"@vitest/coverage-istanbul": "^3.0.0-beta.
|
|
46
|
-
"@vitest/coverage-v8": "^3.0.0-beta.
|
|
47
|
-
"@vitest/ui": "^3.0.0-beta.
|
|
48
|
-
|
|
49
|
-
"vite": "^6.0.
|
|
44
|
+
"@vitest/browser": "^3.0.0-beta.3",
|
|
45
|
+
"@vitest/coverage-istanbul": "^3.0.0-beta.3",
|
|
46
|
+
"@vitest/coverage-v8": "^3.0.0-beta.3",
|
|
47
|
+
"@vitest/ui": "^3.0.0-beta.3",
|
|
48
|
+
"vitest": "^3.0.0-beta.3",
|
|
49
|
+
"vite": "^6.0.6"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {defineConfig} from 'vite';
|
|
2
2
|
import copy from 'rollup-plugin-copy';
|
|
3
|
-
import multi from '@rollup/plugin-multi-entry';
|
|
4
3
|
import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
|
|
5
4
|
import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';
|
|
6
5
|
|
|
@@ -20,7 +19,7 @@ const copyConfig = {
|
|
|
20
19
|
export default defineConfig({
|
|
21
20
|
test: {
|
|
22
21
|
onConsoleLog(log, type) {
|
|
23
|
-
if (log.includes('in dev mode')) {
|
|
22
|
+
if (type === 'stderr' && log.includes('in dev mode')) {
|
|
24
23
|
return false;
|
|
25
24
|
}
|
|
26
25
|
},
|
|
@@ -30,17 +29,21 @@ export default defineConfig({
|
|
|
30
29
|
headless: false,
|
|
31
30
|
name: 'chromium',
|
|
32
31
|
provider: 'playwright',
|
|
33
|
-
|
|
32
|
+
screenshotFailures: false,
|
|
34
33
|
viewport: {width: 1920, height: 1080},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
instances: [
|
|
35
|
+
{
|
|
36
|
+
browser: 'chromium',
|
|
37
|
+
launch: {
|
|
38
|
+
devtools: true,
|
|
39
|
+
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu'],
|
|
40
|
+
},
|
|
38
41
|
},
|
|
39
|
-
|
|
42
|
+
],
|
|
40
43
|
},
|
|
41
44
|
coverage: {
|
|
42
45
|
provider: 'v8',
|
|
43
|
-
reportsDirectory: '
|
|
46
|
+
reportsDirectory: 'test/coverage/',
|
|
44
47
|
reporter: ['lcov', 'json', 'text-summary', 'html'],
|
|
45
48
|
enabled: true,
|
|
46
49
|
thresholds: {
|
|
@@ -56,7 +59,6 @@ export default defineConfig({
|
|
|
56
59
|
plugins: [
|
|
57
60
|
externalizeSourceDependencies(['/__web-dev-server__web-socket.js']),
|
|
58
61
|
copy(copyConfig),
|
|
59
|
-
multi({entryFileName: 'entry.js'}),
|
|
60
62
|
totalBundlesize(),
|
|
61
63
|
],
|
|
62
64
|
optimizeDeps: {
|
|
@@ -67,9 +69,10 @@ export default defineConfig({
|
|
|
67
69
|
outDir: 'dev',
|
|
68
70
|
rollupOptions: {
|
|
69
71
|
preserveEntrySignatures: 'exports-only',
|
|
70
|
-
input:
|
|
72
|
+
input: 'demo/entry.js',
|
|
71
73
|
output: {
|
|
72
74
|
dir: 'dev/',
|
|
75
|
+
entryFileNames: 'entry.js',
|
|
73
76
|
format: 'es',
|
|
74
77
|
},
|
|
75
78
|
},
|
|
@@ -74,13 +74,13 @@ suite('<%= className %>', () => {
|
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
suite('Override ', () => {
|
|
77
|
-
|
|
77
|
+
beforeAll(async () => {
|
|
78
78
|
el = await fixture(html`<<%= tagName %> heading="attribute heading"></<%= tagName %>>`);
|
|
79
79
|
elLocator = page.elementLocator(el);
|
|
80
|
-
});
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
return () => {
|
|
82
|
+
fixtureCleanup();
|
|
83
|
+
};
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
test('can override the heading via attribute', () => {
|
|
@@ -72,13 +72,13 @@ suite('<%= className %>', () => {
|
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
suite('Override ', () => {
|
|
75
|
-
|
|
75
|
+
beforeAll(async () => {
|
|
76
76
|
el = await fixture(html`<<%= tagName %> heading="attribute heading"></<%= tagName %>>`);
|
|
77
77
|
elLocator = page.elementLocator(el);
|
|
78
|
-
});
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
return () => {
|
|
80
|
+
fixtureCleanup();
|
|
81
|
+
};
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
test('can override the heading via attribute', () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|