@blockquote/create-wc 1.22.3 → 1.24.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/README.md +1 -1
- package/package.json +7 -7
- package/src/common-linting/templates/package.json +7 -7
- package/src/common-repo/templates/package.json +7 -8
- package/src/common-testing-wtr/templates/static/web-test-runner.config.mjs +1 -0
- package/src/linting-eslint-ts/templates/package.json +2 -2
- package/src/testing/templates/package.json +3 -3
- package/src/testing-ts/templates/package.json +3 -3
- package/src/testing-wtr/templates/package.json +1 -1
- package/src/testing-wtr-ts/templates/package.json +1 -1
- package/src/wc-lit-element/templates/package.json +1 -3
- package/src/wc-lit-element-ts/templates/package.json +2 -4
- package/src/wc-lit-element-ts/templates/tsconfig.json +13 -13
- package/src/common-repo/templates/static/web-dev-server.config.mjs +0 -27
package/README.md
CHANGED
|
@@ -96,6 +96,7 @@ export default ({
|
|
|
96
96
|
coverageTableReporter()
|
|
97
97
|
],
|
|
98
98
|
|
|
99
|
+
coverage: true,
|
|
99
100
|
coverageConfig: {
|
|
100
101
|
report: true,
|
|
101
102
|
reportDir: `${outDir}/test/coverage`,
|
|
@@ -220,7 +221,6 @@ Example:
|
|
|
220
221
|
│ ├── package.json
|
|
221
222
|
│ ├── README.md
|
|
222
223
|
│ ├── vite.config.js
|
|
223
|
-
│ ├── web-dev-server.config.mjs
|
|
224
224
|
│ └── web-test-runner.config.mjs
|
|
225
225
|
```
|
|
226
226
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
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.70",
|
|
43
43
|
"chalk": "^5.2.0",
|
|
44
44
|
"command-line-args": "^5.2.1",
|
|
45
45
|
"prompts": "^2.4.2",
|
|
46
|
-
"semver": "^7.
|
|
46
|
+
"semver": "^7.5.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@open-wc/eslint-config": "^
|
|
50
|
-
"eslint": "^8.
|
|
51
|
-
"eslint-config-prettier": "^8.
|
|
52
|
-
"prettier": "^2.8.
|
|
49
|
+
"@open-wc/eslint-config": "^10.0.0",
|
|
50
|
+
"eslint": "^8.38.0",
|
|
51
|
+
"eslint-config-prettier": "^8.8.0",
|
|
52
|
+
"prettier": "^2.8.7"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=14.15.0"
|
|
@@ -92,14 +92,14 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@open-wc/eslint-config": "^
|
|
96
|
-
"eslint": "^8.
|
|
97
|
-
"eslint-config-prettier": "^8.
|
|
95
|
+
"@open-wc/eslint-config": "^10.0.0",
|
|
96
|
+
"eslint": "^8.38.0",
|
|
97
|
+
"eslint-config-prettier": "^8.8.0",
|
|
98
98
|
"eslint-plugin-log-filenames": "^1.0.6",
|
|
99
99
|
"husky": "^4.3.8",
|
|
100
|
-
"lint-staged": "^13.2.
|
|
101
|
-
"prettier": "^2.8.
|
|
102
|
-
"stylelint": "^15.
|
|
103
|
-
"stylelint-config-standard-scss": "^
|
|
100
|
+
"lint-staged": "^13.2.1",
|
|
101
|
+
"prettier": "^2.8.7",
|
|
102
|
+
"stylelint": "^15.5.0",
|
|
103
|
+
"stylelint-config-standard-scss": "^8.0.0"
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -24,19 +24,18 @@
|
|
|
24
24
|
"lit": "^2.5.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@blockquote/rollup-plugin-total-bundlesize": "^
|
|
27
|
+
"@blockquote/rollup-plugin-total-bundlesize": "^2.0.1",
|
|
28
28
|
"@blockquote/sass-style-template": "^3.0.1",
|
|
29
29
|
"@blockquote/coverage-table-reporter": "^1.0.0",
|
|
30
|
-
"@custom-elements-manifest/analyzer": "^0.
|
|
30
|
+
"@custom-elements-manifest/analyzer": "^0.8.0",
|
|
31
31
|
"@ungap/global-this": "^0.4.4",
|
|
32
|
-
"@web/
|
|
33
|
-
"@
|
|
34
|
-
"@webcomponents/
|
|
35
|
-
"
|
|
36
|
-
"concurrently": "^7.6.0",
|
|
32
|
+
"@web/rollup-plugin-html": "^2.0.0",
|
|
33
|
+
"@webcomponents/shadycss": "^1.11.2",
|
|
34
|
+
"@webcomponents/webcomponentsjs": "^2.8.0",
|
|
35
|
+
"concurrently": "^8.0.1",
|
|
37
36
|
"rollup-plugin-copy": "^3.4.0",
|
|
38
37
|
"tiny-array-flat-polyfill": "^0.2.1",
|
|
39
|
-
"vite": "^4.1
|
|
38
|
+
"vite": "^4.3.1",
|
|
40
39
|
"sort-package-json": "^2.4.1"
|
|
41
40
|
},
|
|
42
41
|
"publishConfig": {
|
|
@@ -30,6 +30,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
|
|
30
30
|
|
|
31
31
|
reporters: [summaryReporter(), defaultReporter(), coverageTableReporter()],
|
|
32
32
|
|
|
33
|
+
coverage: true,
|
|
33
34
|
coverageConfig: {
|
|
34
35
|
reportDir: `${outDir}/test/coverage`,
|
|
35
36
|
reporters: ['lcov', 'lcovonly', 'json'],
|
|
@@ -27,8 +27,6 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "echo \"This is not a TypeScript project, so no need to build.\"",
|
|
30
|
-
"sass:watch": "sass-style-template"
|
|
31
|
-
"start:wds": "concurrently -k -r \"npm:sass:watch\" \"npm:wds\"",
|
|
32
|
-
"wds": "web-dev-server"
|
|
30
|
+
"sass:watch": "sass-style-template"
|
|
33
31
|
}
|
|
34
32
|
}
|
|
@@ -27,12 +27,10 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "npm run build:tsc && npm run dev:vite",
|
|
29
29
|
"build:tsc": "tsc",
|
|
30
|
-
"sass:watch": "sass-style-template -j ts"
|
|
31
|
-
"start:wds": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"npm:sass:watch\" \"npm:wds\"",
|
|
32
|
-
"wds": "web-dev-server"
|
|
30
|
+
"sass:watch": "sass-style-template -j ts"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
35
33
|
"tslib": "^2.5.0",
|
|
36
|
-
"typescript": "^
|
|
34
|
+
"typescript": "^5.0.4"
|
|
37
35
|
}
|
|
38
36
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "es2019",
|
|
4
|
-
"module": "es2020",
|
|
5
4
|
"lib": ["es2020", "DOM", "DOM.Iterable"],
|
|
5
|
+
"experimentalDecorators": true,
|
|
6
|
+
"useDefineForClassFields": false,
|
|
7
|
+
"module": "es2020",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"rootDirs": ["./src", "./define", ".test/"],
|
|
6
10
|
"declaration": true,
|
|
7
11
|
"declarationMap": true,
|
|
8
12
|
"sourceMap": true,
|
|
13
|
+
"outDir": "./dist",
|
|
9
14
|
"inlineSources": true,
|
|
15
|
+
"allowSyntheticDefaultImports": true,
|
|
10
16
|
"esModuleInterop": true,
|
|
11
|
-
"
|
|
12
|
-
"rootDirs": ["./src", "./define", ".test/"],
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
18
|
"strict": true,
|
|
19
|
+
"noImplicitAny": true,
|
|
20
|
+
"noImplicitThis": true,
|
|
14
21
|
"noUnusedLocals": true,
|
|
15
22
|
"noUnusedParameters": true,
|
|
16
23
|
"noImplicitReturns": true,
|
|
17
24
|
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"moduleResolution": "node",
|
|
21
|
-
"allowSyntheticDefaultImports": true,
|
|
22
|
-
"useDefineForClassFields": false,
|
|
23
|
-
"experimentalDecorators": true,
|
|
24
|
-
"forceConsistentCasingInFileNames": true,
|
|
25
|
-
"noImplicitOverride": true
|
|
25
|
+
"noImplicitOverride": true,
|
|
26
|
+
"skipLibCheck": true
|
|
26
27
|
},
|
|
27
|
-
"include": ["src/**/*.ts", "define/**/*.ts", "test/**/*.ts", "./index.ts", "types/**/*.d.ts"]
|
|
28
|
-
"exclude": ["node_modules/**"]
|
|
28
|
+
"include": ["src/**/*.ts", "define/**/*.ts", "test/**/*.ts", "./index.ts", "types/**/*.d.ts"]
|
|
29
29
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// import { hmrPlugin, presets } from '@open-wc/dev-server-hmr';
|
|
2
|
-
|
|
3
|
-
/** Use Hot Module replacement by adding --hmr to the start command */
|
|
4
|
-
const hmr = process.argv.includes('--hmr');
|
|
5
|
-
|
|
6
|
-
export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
|
|
7
|
-
open: '/demo/',
|
|
8
|
-
/** Use regular watch mode if HMR is not enabled. */
|
|
9
|
-
watch: !hmr,
|
|
10
|
-
/** Resolve bare module imports */
|
|
11
|
-
nodeResolve: {
|
|
12
|
-
exportConditions: ['browser', 'development'],
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
/** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
|
|
16
|
-
// esbuildTarget: 'auto'
|
|
17
|
-
|
|
18
|
-
/** Set appIndex to enable SPA routing */
|
|
19
|
-
// appIndex: 'demo/index.html',
|
|
20
|
-
|
|
21
|
-
plugins: [
|
|
22
|
-
/** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
|
|
23
|
-
// hmr && hmrPlugin({ exclude: ['**/*/node_modules/**/*'], presets: [presets.litElement] }),
|
|
24
|
-
],
|
|
25
|
-
|
|
26
|
-
// See documentation for all available options
|
|
27
|
-
});
|