@blockquote/create-wc 1.93.1 → 1.94.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 +1 -1
- package/src/common-repo/templates/package.json +4 -3
- package/src/common-repo/templates/static/vite.config.js +3 -26
- package/src/common-testing-wtr/templates/static/web-test-runner.config.js +1 -1
- package/src/linting-eslint-ts/templates/package.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.94.0",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LitElement",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@open-wc/eslint-config": "^12.0.3",
|
|
50
50
|
"eslint": "^8.56.0",
|
|
51
51
|
"eslint-config-prettier": "^9.1.0",
|
|
52
|
-
"prettier": "^3.
|
|
52
|
+
"prettier": "^3.2.2"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=14.15.0"
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@blockquote/cem-to-markdown-readme": "^1.0.0",
|
|
29
29
|
"@blockquote/coverage-table-reporter": "^1.2.0",
|
|
30
|
-
"@blockquote/rollup-plugin-
|
|
30
|
+
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
|
31
|
+
"@blockquote/rollup-plugin-total-bundlesize": "^2.1.2",
|
|
31
32
|
"@blockquote/sass-style-template": "^3.0.2",
|
|
32
33
|
"@custom-elements-manifest/analyzer": "^0.9.0",
|
|
33
|
-
|
|
34
|
+
|
|
35
|
+
|
|
34
36
|
"@web/rollup-plugin-html": "^2.1.2",
|
|
35
37
|
"concurrently": "^8.2.2",
|
|
36
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
37
38
|
"sort-package-json": "^2.6.0",
|
|
38
39
|
"ts-lit-plugin": "^2.0.2",
|
|
39
40
|
"vite": "^5.0.11"
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
/* eslint-disable implicit-arrow-linebreak */
|
|
2
2
|
import { defineConfig } from 'vite';
|
|
3
3
|
import { rollupPluginHTML as pluginHtml } from '@web/rollup-plugin-html';
|
|
4
|
-
import copy from 'rollup-plugin-copy';
|
|
5
4
|
import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
|
|
6
|
-
|
|
7
|
-
const copyConfig = {
|
|
8
|
-
targets: [
|
|
9
|
-
{
|
|
10
|
-
src: 'node_modules/@ungap/global-this/index.js',
|
|
11
|
-
dest: 'dev/web_modules/@ungap/global-this',
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
hook: 'writeBundle',
|
|
15
|
-
};
|
|
5
|
+
import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';
|
|
16
6
|
|
|
17
7
|
/**
|
|
18
8
|
* https://vitejs.dev/config/
|
|
@@ -20,8 +10,9 @@ const copyConfig = {
|
|
|
20
10
|
*/
|
|
21
11
|
|
|
22
12
|
export default defineConfig({
|
|
13
|
+
plugins: [externalizeSourceDependencies(['/__web-dev-server__web-socket.js']), pluginHtml(), totalBundlesize()],
|
|
23
14
|
build: {
|
|
24
|
-
target: ['
|
|
15
|
+
target: ['chrome71'],
|
|
25
16
|
outDir: 'dev',
|
|
26
17
|
rollupOptions: {
|
|
27
18
|
input: 'demo/*.html',
|
|
@@ -29,20 +20,6 @@ export default defineConfig({
|
|
|
29
20
|
dir: 'dev/',
|
|
30
21
|
format: 'es',
|
|
31
22
|
},
|
|
32
|
-
plugins: [
|
|
33
|
-
pluginHtml({
|
|
34
|
-
transformHtml: [
|
|
35
|
-
(html) =>
|
|
36
|
-
html.replace(
|
|
37
|
-
'<meta charset="utf-8">',
|
|
38
|
-
`<meta charset="utf-8">
|
|
39
|
-
<script src="./web_modules/@ungap/global-this/index.js"></script>`,
|
|
40
|
-
),
|
|
41
|
-
],
|
|
42
|
-
}),
|
|
43
|
-
copy(copyConfig),
|
|
44
|
-
totalBundlesize(),
|
|
45
|
-
],
|
|
46
23
|
},
|
|
47
24
|
},
|
|
48
25
|
});
|
|
@@ -41,7 +41,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
|
|
41
41
|
functions: 80,
|
|
42
42
|
lines: 80,
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
include: ['**/src/**/*', '**/define/**/*'],
|
|
45
45
|
},
|
|
46
46
|
|
|
47
47
|
testFramework: {
|