@blockquote/create-wc 1.110.2 → 1.111.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.110.2",
3
+ "version": "1.111.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "Lit",
@@ -43,7 +43,6 @@
43
43
  {
44
44
  "files": "*.{scss,css}",
45
45
  "options": {
46
- "printWidth": 280,
47
46
  "singleQuote": false
48
47
  }
49
48
  }
@@ -51,7 +50,7 @@
51
50
  },
52
51
  "dependencies": {
53
52
  "@open-wc/create": "^0.38.151",
54
- "chalk": "^5.4.0",
53
+ "chalk": "^5.4.1",
55
54
  "command-line-args": "^6.0.1",
56
55
  "prompts": "^2.4.2",
57
56
  "semver": "^7.6.3"
@@ -59,7 +58,7 @@
59
58
  "devDependencies": {
60
59
  "@open-wc/eslint-config": "^12.0.3",
61
60
  "eslint": "^8.57.1",
62
- "eslint-config-prettier": "^9.1.0",
61
+ "eslint-config-prettier": "^10.0.1",
63
62
  "prettier": "^3.4.2"
64
63
  },
65
64
  "engines": {
@@ -29,7 +29,6 @@
29
29
  {
30
30
  "files": "*.{scss,css}",
31
31
  "options": {
32
- "printWidth": 280,
33
32
  "singleQuote": false
34
33
  }
35
34
  }
@@ -45,21 +44,21 @@
45
44
  }
46
45
  },
47
46
  "devDependencies": {
48
- "@html-eslint/eslint-plugin": "^0.31.1",
49
- "@html-eslint/parser": "^0.31.0",
50
- "eslint": "^9.17.0",
51
- "eslint-config-prettier": "^9.1.0",
47
+ "@html-eslint/eslint-plugin": "^0.32.0",
48
+ "@html-eslint/parser": "^0.32.0",
49
+ "eslint": "^9.18.0",
50
+ "eslint-config-prettier": "^10.0.1",
52
51
  "eslint-plugin-import": "^2.31.0",
53
52
  "eslint-plugin-lit": "^1.15.0",
54
53
  "eslint-plugin-lit-a11y": "^4.1.4",
55
54
  "eslint-plugin-wc": "^2.2.0",
56
- "@typescript-eslint/parser": "^8.18.1",
57
- "typescript-eslint": "^8.18.1",
55
+ "@typescript-eslint/parser": "^8.20.0",
56
+ "typescript-eslint": "^8.20.0",
58
57
  "globals": "^15.14.0",
59
58
  "husky": "^9.1.7",
60
- "lint-staged": "^15.2.11",
59
+ "lint-staged": "^15.4.1",
61
60
  "prettier": "^3.4.2",
62
- "stylelint": "^16.12.0",
61
+ "stylelint": "^16.13.2",
63
62
  "stylelint-config-standard-scss": "^14.0.0"
64
63
  }
65
64
  }
@@ -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.2.0",
32
- "@blockquote/sass-style-template": "^4.1.0",
32
+ "@blockquote/sass-style-template": "^5.0.0",
33
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
- "@rollup/plugin-multi-entry": "^6.0.1",
39
38
  "rollup-plugin-copy": "^3.5.0",
40
- "concurrently": "^9.1.0",
41
- "sort-package-json": "^2.12.0",
42
- "vite": "^6.0.5"
39
+ "concurrently": "^9.1.2",
40
+ "sort-package-json": "^2.14.0",
41
+ "vite": "^6.0.7"
43
42
  },
44
43
  "publishConfig": {
45
44
  "access": "public"
@@ -1,6 +1,5 @@
1
1
  import {defineConfig} from 'vite';
2
2
  import copy from 'rollup-plugin-copy';
3
- import multi from '@rollup/plugin-multi-entry';
4
3
  import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
5
4
  import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';
6
5
 
@@ -14,13 +13,24 @@ const copyConfig = {
14
13
  hook: 'writeBundle',
15
14
  };
16
15
 
17
- const outDir = process.env.OUTDIR || '.';
16
+ const entriesDir = 'demo';
17
+ const entriesGlob = [`${entriesDir}/entry.js`];
18
+
19
+ // https://github.com/vitejs/vite/discussions/1736#discussioncomment-5126923
20
+ const entries = Object.fromEntries(
21
+ entriesGlob.map((file) => {
22
+ const [key] = file.match(new RegExp(`(?<=${entriesDir}\/).*`)) || [];
23
+ return [key?.replace(/\.[^.]*$/, ''), file];
24
+ })
25
+ );
26
+
27
+ // https://vitejs.dev/config/
28
+ // https://vite-rollup-plugins.patak.dev/
18
29
 
19
30
  export default defineConfig({
20
31
  plugins: [
21
32
  externalizeSourceDependencies(['/__web-dev-server__web-socket.js']),
22
33
  copy(copyConfig),
23
- multi({entryFileName: 'entry.js'}),
24
34
  totalBundlesize(),
25
35
  ],
26
36
  optimizeDeps: {
@@ -31,9 +41,10 @@ export default defineConfig({
31
41
  outDir: 'dev',
32
42
  rollupOptions: {
33
43
  preserveEntrySignatures: 'exports-only',
34
- input: ['demo/*.js'],
44
+ input: entries,
35
45
  output: {
36
46
  dir: 'dev/',
47
+ entryFileNames: '[name].js',
37
48
  format: 'es',
38
49
  },
39
50
  },
@@ -1,17 +1,19 @@
1
- import { css } from 'lit';
1
+ import {css} from 'lit';
2
2
 
3
- export const styles = css`:host {
4
- display: block;
5
- box-sizing: border-box;
6
- }
3
+ export const styles = css`
4
+ :host {
5
+ display: block;
6
+ box-sizing: border-box;
7
+ }
7
8
 
8
- :host([hidden]),
9
- [hidden] {
10
- display: none !important;
11
- }
9
+ :host([hidden]),
10
+ [hidden] {
11
+ display: none !important;
12
+ }
12
13
 
13
- *,
14
- *::before,
15
- *::after {
16
- box-sizing: inherit;
17
- }`;
14
+ *,
15
+ *::before,
16
+ *::after {
17
+ box-sizing: inherit;
18
+ }
19
+ `;
@@ -32,6 +32,6 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "tslib": "^2.8.1",
35
- "typescript": "^5.7.2"
35
+ "typescript": "^5.7.3"
36
36
  }
37
37
  }
@@ -1,17 +1,19 @@
1
- import { css } from 'lit';
1
+ import {css} from 'lit';
2
2
 
3
- export const styles = css`:host {
4
- display: block;
5
- box-sizing: border-box;
6
- }
3
+ export const styles = css`
4
+ :host {
5
+ display: block;
6
+ box-sizing: border-box;
7
+ }
7
8
 
8
- :host([hidden]),
9
- [hidden] {
10
- display: none !important;
11
- }
9
+ :host([hidden]),
10
+ [hidden] {
11
+ display: none !important;
12
+ }
12
13
 
13
- *,
14
- *::before,
15
- *::after {
16
- box-sizing: inherit;
17
- }`;
14
+ *,
15
+ *::before,
16
+ *::after {
17
+ box-sizing: inherit;
18
+ }
19
+ `;