@blockquote/create-wc 1.109.1 → 1.110.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 +3 -3
- package/src/common-linting/templates/package.json +7 -7
- package/src/common-repo/templates/package.json +4 -3
- package/src/{wc-lit-element-ts → common-repo}/templates/static/demo/index.html +3 -6
- package/src/common-repo/templates/static/vite.config.js +20 -7
- package/src/wc-lit-element/templates/static/demo/entry.js +2 -0
- package/src/wc-lit-element-ts/templates/static/demo/entry.js +2 -0
- package/src/wc-lit-element/templates/static/demo/index.html +0 -35
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.110.1",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
6
|
+
"Lit",
|
|
7
7
|
"web-component",
|
|
8
8
|
"sass",
|
|
9
9
|
"scaffold",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@open-wc/eslint-config": "^12.0.3",
|
|
61
61
|
"eslint": "^8.57.1",
|
|
62
62
|
"eslint-config-prettier": "^9.1.0",
|
|
63
|
-
"prettier": "^3.4.
|
|
63
|
+
"prettier": "^3.4.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=14.15.0"
|
|
@@ -45,21 +45,21 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
49
|
-
"@html-eslint/parser": "^0.
|
|
50
|
-
"eslint": "^9.
|
|
48
|
+
"@html-eslint/eslint-plugin": "^0.31.1",
|
|
49
|
+
"@html-eslint/parser": "^0.31.0",
|
|
50
|
+
"eslint": "^9.17.0",
|
|
51
51
|
"eslint-config-prettier": "^9.1.0",
|
|
52
52
|
"eslint-plugin-import": "^2.31.0",
|
|
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.
|
|
57
|
-
"typescript-eslint": "^8.
|
|
56
|
+
"@typescript-eslint/parser": "^8.18.1",
|
|
57
|
+
"typescript-eslint": "^8.18.1",
|
|
58
58
|
"globals": "^15.13.0",
|
|
59
59
|
"husky": "^9.1.7",
|
|
60
|
-
"lint-staged": "^15.2.
|
|
60
|
+
"lint-staged": "^15.2.11",
|
|
61
61
|
"prettier": "^3.4.2",
|
|
62
|
-
"stylelint": "^16.
|
|
62
|
+
"stylelint": "^16.12.0",
|
|
63
63
|
"stylelint-config-standard-scss": "^14.0.0"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"customElements": "custom-elements.json",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"start": "concurrently -k -r \"npm:
|
|
15
|
+
"start": "concurrently -k -r \"npm:vite\" \"npm:sass:watch\"",
|
|
16
16
|
"vite": "vite",
|
|
17
17
|
"dev:vite": "vite build",
|
|
18
18
|
"preview:vite": "vite preview",
|
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
|
31
31
|
"@blockquote/rollup-plugin-total-bundlesize": "^2.1.2",
|
|
32
32
|
"@blockquote/sass-style-template": "^4.1.0",
|
|
33
|
-
"@custom-elements-manifest/analyzer": "^0.10.
|
|
33
|
+
"@custom-elements-manifest/analyzer": "^0.10.4",
|
|
34
34
|
"@open-wc/testing": "^4.0.0",
|
|
35
35
|
"@types/mocha": "^10.0.10",
|
|
36
36
|
"@web/test-runner": "^0.19.0",
|
|
37
37
|
"@web/test-runner-playwright": "^0.11.0",
|
|
38
|
-
"@
|
|
38
|
+
"@rollup/plugin-multi-entry": "^6.0.1",
|
|
39
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
39
40
|
"concurrently": "^9.1.0",
|
|
40
41
|
"sort-package-json": "^2.12.0",
|
|
41
42
|
"vite": "^6.0.3"
|
|
@@ -16,19 +16,16 @@
|
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
|
-
<div id="demo"></div>
|
|
20
|
-
|
|
21
19
|
<script type="module">
|
|
22
|
-
import {html, render} from '
|
|
23
|
-
import '../src/define/<%= tagName %>.ts';
|
|
20
|
+
import {html, render} from './entry.js';
|
|
24
21
|
|
|
25
22
|
const heading = 'World!';
|
|
26
23
|
render(
|
|
27
24
|
html`<<%= tagName %>
|
|
28
|
-
@counterchange="${(ev) => console.log('==>', ev.detail)}" .heading
|
|
25
|
+
@counterchange="${(ev) => console.log('==>', ev.detail)}" .heading="${heading}"
|
|
29
26
|
>some light-dom</<%= tagName %>
|
|
30
27
|
>`,
|
|
31
|
-
document.
|
|
28
|
+
document.body
|
|
32
29
|
);
|
|
33
30
|
</script>
|
|
34
31
|
</body>
|
|
@@ -1,24 +1,37 @@
|
|
|
1
|
-
/* eslint-disable implicit-arrow-linebreak */
|
|
2
1
|
import {defineConfig} from 'vite';
|
|
3
|
-
import
|
|
2
|
+
import copy from 'rollup-plugin-copy';
|
|
3
|
+
import multi from '@rollup/plugin-multi-entry';
|
|
4
4
|
import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
|
|
5
5
|
import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const copyConfig = {
|
|
8
|
+
targets: [
|
|
9
|
+
{
|
|
10
|
+
src: 'demo/*.html',
|
|
11
|
+
dest: 'dev/',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
hook: 'writeBundle',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const outDir = process.env.OUTDIR || '.';
|
|
11
18
|
|
|
12
19
|
export default defineConfig({
|
|
13
20
|
plugins: [
|
|
14
21
|
externalizeSourceDependencies(['/__web-dev-server__web-socket.js']),
|
|
15
|
-
|
|
22
|
+
copy(copyConfig),
|
|
23
|
+
multi({entryFileName: 'entry.js'}),
|
|
16
24
|
totalBundlesize(),
|
|
17
25
|
],
|
|
26
|
+
optimizeDeps: {
|
|
27
|
+
exclude: ['lit', 'lit-html'],
|
|
28
|
+
},
|
|
18
29
|
build: {
|
|
19
30
|
target: ['chrome71'],
|
|
20
31
|
outDir: 'dev',
|
|
21
32
|
rollupOptions: {
|
|
33
|
+
preserveEntrySignatures: 'exports-only',
|
|
34
|
+
input: ['demo/*.js'],
|
|
22
35
|
output: {
|
|
23
36
|
dir: 'dev/',
|
|
24
37
|
format: 'es',
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Demo - <%= tagName %></title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link rel="icon" href="data:image/x-icon;base64,B" />
|
|
8
|
-
<meta name="description" content="<%= tagName %>" />
|
|
9
|
-
<style>
|
|
10
|
-
html,
|
|
11
|
-
body {
|
|
12
|
-
height: 100%;
|
|
13
|
-
margin: 0;
|
|
14
|
-
font-family: sans-serif;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
<div id="demo"></div>
|
|
20
|
-
|
|
21
|
-
<script type="module">
|
|
22
|
-
import {html, render} from 'lit';
|
|
23
|
-
import '../src/define/<%= tagName %>.js';
|
|
24
|
-
|
|
25
|
-
const heading = 'World!';
|
|
26
|
-
render(
|
|
27
|
-
html`<<%= tagName %>
|
|
28
|
-
@counterchange="${(ev) => console.log('==>', ev.detail)}" .heading=${heading}
|
|
29
|
-
>some light-dom</<%= tagName %>
|
|
30
|
-
>`,
|
|
31
|
-
document.querySelector('#demo')
|
|
32
|
-
);
|
|
33
|
-
</script>
|
|
34
|
-
</body>
|
|
35
|
-
</html>
|