@blockquote/create-wc 1.93.0 → 1.94.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.93.0",
3
+ "version": "1.94.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "LitElement",
@@ -46,10 +46,10 @@
46
46
  "semver": "^7.5.4"
47
47
  },
48
48
  "devDependencies": {
49
- "@open-wc/eslint-config": "^12.0.2",
49
+ "@open-wc/eslint-config": "^12.0.3",
50
50
  "eslint": "^8.56.0",
51
51
  "eslint-config-prettier": "^9.1.0",
52
- "prettier": "^3.1.1"
52
+ "prettier": "^3.2.2"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=14.15.0"
@@ -93,12 +93,12 @@
93
93
  }
94
94
  },
95
95
  "devDependencies": {
96
- "@open-wc/eslint-config": "^12.0.2",
96
+ "@open-wc/eslint-config": "^12.0.3",
97
97
  "eslint": "^8.56.0",
98
98
  "eslint-config-prettier": "^9.1.0",
99
99
  "husky": "^8.0.3",
100
100
  "lint-staged": "^15.2.0",
101
- "prettier": "^3.1.1",
101
+ "prettier": "^3.2.2",
102
102
  "stylelint": "^16.1.0",
103
103
  "stylelint-config-standard-scss": "^13.0.0"
104
104
  }
@@ -22,20 +22,21 @@
22
22
  "prepare": "husky install"
23
23
  },
24
24
  "dependencies": {
25
- "lit": "^3.1.0"
25
+ "lit": "^3.1.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@blockquote/cem-to-markdown-readme": "^1.0.0",
29
29
  "@blockquote/coverage-table-reporter": "^1.2.0",
30
- "@blockquote/rollup-plugin-total-bundlesize": "^2.1.1",
30
+ "@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
31
+ "@blockquote/rollup-plugin-total-bundlesize": "^2.1.2",
31
32
  "@blockquote/sass-style-template": "^3.0.2",
32
33
  "@custom-elements-manifest/analyzer": "^0.9.0",
33
- "@ungap/global-this": "^0.4.4",
34
+
35
+
34
36
  "@web/rollup-plugin-html": "^2.1.2",
35
37
  "concurrently": "^8.2.2",
36
- "rollup-plugin-copy": "^3.5.0",
37
38
  "sort-package-json": "^2.6.0",
38
- "ts-lit-plugin": "^2.0.1",
39
+ "ts-lit-plugin": "^2.0.2",
39
40
  "vite": "^5.0.11"
40
41
  },
41
42
  "publishConfig": {
@@ -1,18 +1,8 @@
1
1
  /* eslint-disable implicit-arrow-linebreak */
2
2
  import { defineConfig } from 'vite';
3
3
  import { rollupPluginHTML as pluginHtml } from '@web/rollup-plugin-html';
4
- import copy from 'rollup-plugin-copy';
5
4
  import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
6
-
7
- const copyConfig = {
8
- targets: [
9
- {
10
- src: 'node_modules/@ungap/global-this/index.js',
11
- dest: 'dev/web_modules/@ungap/global-this',
12
- },
13
- ],
14
- hook: 'writeBundle',
15
- };
5
+ import externalizeSourceDependencies from '@blockquote/rollup-plugin-externalize-source-dependencies';
16
6
 
17
7
  /**
18
8
  * https://vitejs.dev/config/
@@ -20,8 +10,9 @@ const copyConfig = {
20
10
  */
21
11
 
22
12
  export default defineConfig({
13
+ plugins: [externalizeSourceDependencies(['/__web-dev-server__web-socket.js']), pluginHtml(), totalBundlesize()],
23
14
  build: {
24
- target: ['chrome70'],
15
+ target: ['chrome71'],
25
16
  outDir: 'dev',
26
17
  rollupOptions: {
27
18
  input: 'demo/*.html',
@@ -29,20 +20,6 @@ export default defineConfig({
29
20
  dir: 'dev/',
30
21
  format: 'es',
31
22
  },
32
- plugins: [
33
- pluginHtml({
34
- transformHtml: [
35
- (html) =>
36
- html.replace(
37
- '<meta charset="utf-8">',
38
- `<meta charset="utf-8">
39
- <script src="./web_modules/@ungap/global-this/index.js"></script>`,
40
- ),
41
- ],
42
- }),
43
- copy(copyConfig),
44
- totalBundlesize(),
45
- ],
46
23
  },
47
24
  },
48
25
  });
@@ -41,7 +41,7 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
41
41
  functions: 80,
42
42
  lines: 80,
43
43
  },
44
- exclude: ['**/node_modules/**/*', '**/web_modules/**/*', '**/__wds-outside-root__/**/*'],
44
+ include: ['**/src/**/*', '**/define/**/*'],
45
45
  },
46
46
 
47
47
  testFramework: {
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "devDependencies": {
25
- "@typescript-eslint/eslint-plugin": "^6.18.0",
26
- "@typescript-eslint/parser": "^6.18.0"
25
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
26
+ "@typescript-eslint/parser": "^6.19.0"
27
27
  }
28
28
  }