@blockquote/create-wc 1.105.0 → 1.107.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockquote/create-wc",
3
- "version": "1.105.0",
3
+ "version": "1.107.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.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.0",
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.12.0",
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.9.0",
57
- "typescript-eslint": "^8.8.1",
58
- "globals": "^15.11.0",
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",
@@ -116,10 +116,11 @@ const htmlFilesConfig = [html.configs['flat/recommended']].map((conf) => ({
116
116
  const htmlFilesRules = {
117
117
  files: ['**/*.html'],
118
118
  rules: {
119
- '@html-eslint/indent': ['error', 2],
120
119
  '@html-eslint/require-closing-tags': 'off',
121
- '@html-eslint/no-extra-spacing-attrs': 'off',
122
120
  '@html-eslint/attrs-newline': 'off',
121
+ '@html-eslint/element-newline': 'off',
122
+ '@html-eslint/indent': ['error', 2],
123
+ '@html-eslint/no-extra-spacing-attrs': 'off',
123
124
  },
124
125
  };
125
126
 
@@ -143,7 +144,8 @@ export default [
143
144
  '**/*.config.*',
144
145
  '**/*.d.ts',
145
146
  '**/*.min.js',
146
- '**/*-styles.*',
147
+ '**/*-styles.js',
148
+ '**/*-styles.ts',
147
149
  '**/*.workspace.*',
148
150
  ],
149
151
  },
@@ -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 \"{src,define}/**/*.{js,ts}\" \"index.js\"",
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,17 +29,16 @@
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": "^3.0.3",
32
+ "@blockquote/sass-style-template": "^3.0.5",
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.1",
39
+ "concurrently": "^9.1.0",
40
40
  "sort-package-json": "^2.10.1",
41
- "ts-lit-plugin": "^2.0.2",
42
- "vite": "^5.4.9"
41
+ "vite": "^5.4.10"
43
42
  },
44
43
  "publishConfig": {
45
44
  "access": "public"
@@ -34,5 +34,6 @@
34
34
  **/*.d.ts
35
35
  **/package-lock.json
36
36
  **/*.min.js
37
- **/*-styles.*
37
+ **/*-styles*.js
38
+ **/*-styles*.ts
38
39
  **/CHANGELOG.md
@@ -38,7 +38,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
38
38
  functions: 80,
39
39
  lines: 80,
40
40
  },
41
- include: ['**/src/**/*', '**/define/**/*'],
41
+ include: ['**/src/**/*'],
42
42
  },
43
43
 
44
44
  testFramework: {
@@ -1,5 +1,5 @@
1
1
  import {html, fixture, assert, expect, fixtureCleanup} from '@open-wc/testing';
2
- import '../define/<%= tagName %>.js';
2
+ import '../src/define/<%= tagName %>.js';
3
3
 
4
4
  suite('<%= className %>', () => {
5
5
  /**
@@ -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/**/*`);
@@ -1,3 +1,3 @@
1
- import {<%= className %>} from '../src/<%= className %>.js';
1
+ import {<%= className %>} from '../<%= className %>.js';
2
2
 
3
3
  window.customElements.define('<%= tagName %>', <%= className %>);
@@ -6,25 +6,23 @@
6
6
  "./package.json": {
7
7
  "default": "./package.json"
8
8
  },
9
- "./src/<%= className %>.js": {
9
+ "./<%= className %>.js": {
10
10
  "default": "./src/<%= className %>.js"
11
11
  },
12
- "./define/<%= tagName %>.js": {
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
- "./src/styles/<%= tagName %>-styles.css.js": {
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": {
@@ -20,7 +20,7 @@
20
20
 
21
21
  <script type="module">
22
22
  import {html, render} from 'lit';
23
- import '../define/<%= tagName %>.js';
23
+ import '../src/define/<%= tagName %>.js';
24
24
 
25
25
  const heading = 'World!';
26
26
  render(
@@ -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/**/*`);
@@ -1,3 +1,3 @@
1
- import {<%= className %>} from '../src/<%= className %>.js';
1
+ import {<%= className %>} from '../<%= className %>.js';
2
2
 
3
3
  window.customElements.define('<%= tagName %>', <%= className %>);
@@ -6,16 +6,16 @@
6
6
  "./package.json": {
7
7
  "default": "./package.json"
8
8
  },
9
- "./src/<%= className %>.js": {
9
+ "./<%= className %>.js": {
10
10
  "default": "./dist/src/<%= className %>.js"
11
11
  },
12
- "./define/<%= tagName %>.js": {
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
- "./src/styles/<%= tagName %>-styles.css.js": {
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.0",
34
+ "tslib": "^2.8.1",
36
35
  "typescript": "^5.6.3"
37
36
  }
38
37
  }
@@ -20,7 +20,7 @@
20
20
 
21
21
  <script type="module">
22
22
  import {html, render} from 'lit';
23
- import '../define/<%= tagName %>.ts';
23
+ import '../src/define/<%= tagName %>.ts';
24
24
 
25
25
  const heading = 'World!';
26
26
  render(
@@ -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", "define/**/*.ts", "test/**/*.ts"]
33
+ "include": ["src/**/*.ts", "test/**/*.ts"]
45
34
  }