@blockquote/create-wc 2.2.4 → 2.2.5

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": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "Lit",
@@ -53,7 +53,7 @@
53
53
  "chalk": "^5.4.1",
54
54
  "command-line-args": "^6.0.1",
55
55
  "prompts": "^2.4.2",
56
- "semver": "^7.6.3"
56
+ "semver": "^7.7.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@open-wc/eslint-config": "^12.0.3",
@@ -31,6 +31,12 @@
31
31
  "options": {
32
32
  "singleQuote": false
33
33
  }
34
+ },
35
+ {
36
+ "files": "*.json",
37
+ "options": {
38
+ "parser": "json-stringify"
39
+ }
34
40
  }
35
41
  ]
36
42
  },
@@ -44,21 +50,21 @@
44
50
  }
45
51
  },
46
52
  "devDependencies": {
47
- "@html-eslint/eslint-plugin": "^0.32.0",
48
- "@html-eslint/parser": "^0.32.0",
49
- "eslint": "^9.18.0",
53
+ "@html-eslint/eslint-plugin": "^0.34.0",
54
+ "@html-eslint/parser": "^0.34.0",
55
+ "eslint": "^9.19.0",
50
56
  "eslint-config-prettier": "^10.0.1",
51
57
  "eslint-plugin-import": "^2.31.0",
52
58
  "eslint-plugin-lit": "^1.15.0",
53
59
  "eslint-plugin-lit-a11y": "^4.1.4",
54
60
  "eslint-plugin-wc": "^2.2.0",
55
- "@typescript-eslint/parser": "^8.20.0",
56
- "typescript-eslint": "^8.20.0",
61
+ "@typescript-eslint/parser": "^8.23.0",
62
+ "typescript-eslint": "^8.23.0",
57
63
  "globals": "^15.14.0",
58
64
  "husky": "^9.1.7",
59
- "lint-staged": "^15.4.1",
65
+ "lint-staged": "^15.4.3",
60
66
  "prettier": "^3.4.2",
61
- "stylelint": "^16.13.2",
67
+ "stylelint": "^16.14.1",
62
68
  "stylelint-config-standard-scss": "^14.0.0"
63
69
  }
64
70
  }
@@ -34,19 +34,19 @@
34
34
  "@custom-elements-manifest/analyzer": "^0.10.4",
35
35
  "@open-wc/semantic-dom-diff": "^0.20.1",
36
36
  "@open-wc/testing": "^4.0.0",
37
- "playwright": "^1.49.1",
37
+ "playwright": "^1.50.1",
38
38
  "@types/mocha": "^10.0.10",
39
39
  "rollup-plugin-copy": "^3.5.0",
40
40
  "rollup-plugin-node-externals": "^8.0.0",
41
41
  "tinyglobby": "^0.2.10",
42
42
  "concurrently": "^9.1.2",
43
43
  "sort-package-json": "^2.14.0",
44
- "@vitest/browser": "^3.0.2",
45
- "@vitest/coverage-istanbul": "^3.0.2",
46
- "@vitest/coverage-v8": "^3.0.2",
47
- "@vitest/ui": "^3.0.2",
48
- "vitest": "^3.0.2",
49
- "vite": "^6.0.7"
44
+ "@vitest/browser": "^3.0.5",
45
+ "@vitest/coverage-istanbul": "^3.0.5",
46
+ "@vitest/coverage-v8": "^3.0.5",
47
+ "@vitest/ui": "^3.0.5",
48
+ "vitest": "^3.0.5",
49
+ "vite": "^6.1.0"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
@@ -1,25 +1,27 @@
1
1
  import {defineConfig} from 'vite';
2
+ import {globSync} from 'tinyglobby';
2
3
  import copy from 'rollup-plugin-copy';
3
4
  import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
4
5
  import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';
5
6
 
7
+ const OUT_DIR = 'dev';
8
+ const ENTRIES_DIR = 'demo';
9
+ const ENTRIES_GLOB = [`${ENTRIES_DIR}/**/*.js`];
10
+
6
11
  const copyConfig = {
7
12
  targets: [
8
13
  {
9
- src: 'demo/*.html',
10
- dest: 'dev/',
14
+ src: [`${ENTRIES_DIR}/**/*.*`, `!${ENTRIES_GLOB}`],
15
+ dest: OUT_DIR,
11
16
  },
12
17
  ],
13
18
  hook: 'writeBundle',
14
19
  };
15
20
 
16
- const entriesDir = 'demo';
17
- const entriesGlob = [`${entriesDir}/entry.js`];
18
-
19
21
  // https://github.com/vitejs/vite/discussions/1736#discussioncomment-5126923
20
22
  const entries = Object.fromEntries(
21
- entriesGlob.map((file) => {
22
- const [key] = file.match(new RegExp(`(?<=${entriesDir}\/).*`)) || [];
23
+ globSync(ENTRIES_GLOB).map((file) => {
24
+ const [key] = file.match(new RegExp(`(?<=${ENTRIES_DIR}\/).*`)) || [];
23
25
  return [key?.replace(/\.[^.]*$/, ''), file];
24
26
  })
25
27
  );
@@ -53,7 +55,7 @@ export default defineConfig({
53
55
  ],
54
56
  },
55
57
  coverage: {
56
- provider: 'v8',
58
+ provider: 'istanbul',
57
59
  reportsDirectory: 'test/coverage/',
58
60
  reporter: ['lcov', 'json', 'text-summary', 'html'],
59
61
  enabled: true,
@@ -77,12 +79,12 @@ export default defineConfig({
77
79
  },
78
80
  build: {
79
81
  target: ['chrome71'],
80
- outDir: 'dev',
82
+ outDir: OUT_DIR,
81
83
  rollupOptions: {
82
84
  preserveEntrySignatures: 'exports-only',
83
85
  input: entries,
84
86
  output: {
85
- dir: 'dev/',
87
+ dir: OUT_DIR,
86
88
  entryFileNames: '[name].js',
87
89
  format: 'es',
88
90
  },
@@ -8,7 +8,11 @@
8
8
  "esModuleInterop": true,
9
9
  "experimentalDecorators": true,
10
10
  "forceConsistentCasingInFileNames": true,
11
- "lib": ["es2022", "DOM", "DOM.Iterable"],
11
+ "lib": [
12
+ "es2022",
13
+ "DOM",
14
+ "DOM.Iterable"
15
+ ],
12
16
  "module": "es2022",
13
17
  "moduleResolution": "Bundler",
14
18
  "noFallthroughCasesInSwitch": true,
@@ -26,9 +30,13 @@
26
30
  "strict": true,
27
31
  "stripInternal": true,
28
32
  "target": "es2022",
29
- "types": ["mocha"],
33
+ "types": [
34
+ "mocha"
35
+ ],
30
36
  "useDefineForClassFields": false,
31
37
  "verbatimModuleSyntax": true
32
38
  },
33
- "include": ["src/**/*.ts"]
39
+ "include": [
40
+ "src/**/*.ts"
41
+ ]
34
42
  }