@blockquote/create-wc 1.106.0 → 1.108.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 +3 -3
- package/src/common-linting/templates/package.json +4 -4
- package/src/common-repo/templates/eslint.config.js +2 -1
- package/src/common-repo/templates/package.json +3 -4
- package/src/common-repo/templates/prettierignore +2 -1
- package/src/common-testing-wtr/templates/static/web-test-runner.config.js +1 -1
- package/src/testing/templates/my-el.test.js +1 -1
- package/src/testing-ts/templates/my-el.test.ts +1 -1
- package/src/wc-lit-element/index.js +1 -1
- package/src/wc-lit-element/templates/my-el.js +1 -1
- package/src/wc-lit-element/templates/package.json +4 -6
- package/src/wc-lit-element/templates/static/demo/index.html +1 -1
- package/src/wc-lit-element/templates/tsconfig.json +0 -11
- package/src/wc-lit-element-ts/index.js +1 -1
- package/src/wc-lit-element-ts/templates/my-el.ts +1 -1
- package/src/wc-lit-element-ts/templates/package.json +5 -6
- package/src/wc-lit-element-ts/templates/static/demo/index.html +1 -1
- package/src/wc-lit-element-ts/templates/tsconfig.json +1 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/create-wc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.108.0",
|
|
4
4
|
"description": "Web component with Lit scaffolding - Extending Open Web Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LitElement",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@open-wc/create": "^0.38.151",
|
|
54
54
|
"chalk": "^5.3.0",
|
|
55
|
-
"command-line-args": "^6.0.
|
|
55
|
+
"command-line-args": "^6.0.1",
|
|
56
56
|
"prompts": "^2.4.2",
|
|
57
57
|
"semver": "^7.6.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@open-wc/eslint-config": "^12.0.3",
|
|
61
|
-
"eslint": "^8.57.
|
|
61
|
+
"eslint": "^8.57.1",
|
|
62
62
|
"eslint-config-prettier": "^9.1.0",
|
|
63
63
|
"prettier": "^3.3.3"
|
|
64
64
|
},
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@html-eslint/eslint-plugin": "^0.27.0",
|
|
49
49
|
"@html-eslint/parser": "^0.27.0",
|
|
50
|
-
"eslint": "^9.
|
|
50
|
+
"eslint": "^9.14.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.
|
|
58
|
-
"globals": "^15.
|
|
56
|
+
"@typescript-eslint/parser": "^8.13.0",
|
|
57
|
+
"typescript-eslint": "^8.13.0",
|
|
58
|
+
"globals": "^15.12.0",
|
|
59
59
|
"husky": "^9.1.6",
|
|
60
60
|
"lint-staged": "^15.2.10",
|
|
61
61
|
"prettier": "^3.3.3",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"vite": "vite",
|
|
17
17
|
"dev:vite": "vite build",
|
|
18
18
|
"preview:vite": "vite preview",
|
|
19
|
-
"analyze": "cem analyze --litelement --globs \"
|
|
19
|
+
"analyze": "cem analyze --litelement --globs \"src/**/*.{js,ts}\" \"index.js\"",
|
|
20
20
|
"sort:package": "npx sort-package-json",
|
|
21
21
|
"postinstall": "npm run sort:package",
|
|
22
22
|
"prepare": "husky"
|
|
@@ -29,16 +29,15 @@
|
|
|
29
29
|
"@blockquote/coverage-table-reporter": "^1.2.0",
|
|
30
30
|
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
|
31
31
|
"@blockquote/rollup-plugin-total-bundlesize": "^2.1.2",
|
|
32
|
-
"@blockquote/sass-style-template": "^
|
|
32
|
+
"@blockquote/sass-style-template": "^4.0.0",
|
|
33
33
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
34
34
|
"@open-wc/testing": "^4.0.0",
|
|
35
35
|
"@types/mocha": "^10.0.9",
|
|
36
36
|
"@web/test-runner": "^0.19.0",
|
|
37
37
|
"@web/test-runner-playwright": "^0.11.0",
|
|
38
38
|
"@web/rollup-plugin-html": "^2.3.0",
|
|
39
|
-
"concurrently": "^9.0
|
|
39
|
+
"concurrently": "^9.1.0",
|
|
40
40
|
"sort-package-json": "^2.10.1",
|
|
41
|
-
"ts-lit-plugin": "^2.0.2",
|
|
42
41
|
"vite": "^5.4.10"
|
|
43
42
|
},
|
|
44
43
|
"publishConfig": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {html, fixture, assert, expect, fixtureCleanup} from '@open-wc/testing';
|
|
2
2
|
import {<%= className %>} from '../src/<%= className %>.js';
|
|
3
|
-
import '../define/<%= tagName %>.js';
|
|
3
|
+
import '../src/define/<%= tagName %>.js';
|
|
4
4
|
|
|
5
5
|
suite('<%= className %>', () => {
|
|
6
6
|
let el: <%= className %>;
|
|
@@ -55,7 +55,7 @@ export const WcLitElementMixin = (subclass) =>
|
|
|
55
55
|
// write & rename el registration template
|
|
56
56
|
this.copyTemplate(
|
|
57
57
|
`${__dirname}/templates/my-el.js`,
|
|
58
|
-
this.destinationPath(`define/${tagName}.js`)
|
|
58
|
+
this.destinationPath(`src/define/${tagName}.js`)
|
|
59
59
|
);
|
|
60
60
|
|
|
61
61
|
await this.copyTemplates(`${__dirname}/templates/static/**/*`);
|
|
@@ -6,25 +6,23 @@
|
|
|
6
6
|
"./package.json": {
|
|
7
7
|
"default": "./package.json"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"./<%= className %>.js": {
|
|
10
10
|
"default": "./src/<%= className %>.js"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
"default": "./define/<%= tagName %>.js"
|
|
12
|
+
"./<%= tagName %>.js": {
|
|
13
|
+
"default": "./src/define/<%= tagName %>.js"
|
|
14
14
|
},
|
|
15
15
|
"./index.js": {
|
|
16
16
|
"default": "./src/index.js"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"./<%= tagName %>-styles.css.js": {
|
|
19
19
|
"default": "./src/styles/<%= tagName %>-styles.css.js"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"main": "src/index.js",
|
|
23
23
|
"module": "src/index.js",
|
|
24
24
|
"files": [
|
|
25
|
-
"/define/",
|
|
26
25
|
"/src/",
|
|
27
|
-
"index.js",
|
|
28
26
|
"!/**/*.scss"
|
|
29
27
|
],
|
|
30
28
|
"scripts": {
|
|
@@ -14,17 +14,6 @@
|
|
|
14
14
|
"noImplicitThis": true,
|
|
15
15
|
"alwaysStrict": true,
|
|
16
16
|
"allowSyntheticDefaultImports": true,
|
|
17
|
-
"plugins": [
|
|
18
|
-
{
|
|
19
|
-
"name": "ts-lit-plugin",
|
|
20
|
-
"rules": {
|
|
21
|
-
"no-unknown-slot": "warning",
|
|
22
|
-
"no-unknown-attribute": "warning",
|
|
23
|
-
"no-unknown-property": "warning",
|
|
24
|
-
"no-unknown-event": "warning"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
17
|
},
|
|
29
18
|
"include": ["src/**/*.js"]
|
|
30
19
|
}
|
|
@@ -55,7 +55,7 @@ export const TsWcLitElementMixin = (subclass) =>
|
|
|
55
55
|
// write & rename el registration template
|
|
56
56
|
this.copyTemplate(
|
|
57
57
|
`${__dirname}/templates/my-el.ts`,
|
|
58
|
-
this.destinationPath(`define/${tagName}.ts`)
|
|
58
|
+
this.destinationPath(`src/define/${tagName}.ts`)
|
|
59
59
|
);
|
|
60
60
|
|
|
61
61
|
await this.copyTemplates(`${__dirname}/templates/static/**/*`);
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
"./package.json": {
|
|
7
7
|
"default": "./package.json"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"./<%= className %>.js": {
|
|
10
10
|
"default": "./dist/src/<%= className %>.js"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
"default": "./dist/define/<%= tagName %>.js"
|
|
12
|
+
"./<%= tagName %>.js": {
|
|
13
|
+
"default": "./dist/src/define/<%= tagName %>.js"
|
|
14
14
|
},
|
|
15
15
|
"./index.js": {
|
|
16
16
|
"default": "./dist/src/index.js"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"./<%= tagName %>-styles.css.js": {
|
|
19
19
|
"default": "./dist/src/styles/<%= tagName %>-styles.css.js"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"module": "dist/src/index.js",
|
|
24
24
|
"files": [
|
|
25
25
|
"/dist/",
|
|
26
|
-
"/dist/index.*",
|
|
27
26
|
"!/dist/test/"
|
|
28
27
|
],
|
|
29
28
|
"scripts": {
|
|
@@ -32,7 +31,7 @@
|
|
|
32
31
|
"sass:watch": "sass-style-template -j ts"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
|
-
"tslib": "^2.8.
|
|
34
|
+
"tslib": "^2.8.1",
|
|
36
35
|
"typescript": "^5.6.3"
|
|
37
36
|
}
|
|
38
37
|
}
|
|
@@ -28,18 +28,7 @@
|
|
|
28
28
|
"useDefineForClassFields": false,
|
|
29
29
|
"noFallthroughCasesInSwitch": true,
|
|
30
30
|
"noImplicitOverride": true,
|
|
31
|
-
"plugins": [
|
|
32
|
-
{
|
|
33
|
-
"name": "ts-lit-plugin",
|
|
34
|
-
"rules": {
|
|
35
|
-
"no-unknown-slot": "warning",
|
|
36
|
-
"no-unknown-attribute": "warning",
|
|
37
|
-
"no-unknown-property": "warning",
|
|
38
|
-
"no-unknown-event": "warning"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
31
|
"types": ["mocha"]
|
|
43
32
|
},
|
|
44
|
-
"include": ["src/**/*.ts", "
|
|
33
|
+
"include": ["src/**/*.ts", "test/**/*.ts"]
|
|
45
34
|
}
|