@blockquote/create-wc 2.2.5 → 2.2.7

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.5",
3
+ "version": "2.2.7",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "Lit",
@@ -59,7 +59,7 @@
59
59
  "@open-wc/eslint-config": "^12.0.3",
60
60
  "eslint": "^8.57.1",
61
61
  "eslint-config-prettier": "^10.0.1",
62
- "prettier": "^3.4.2"
62
+ "prettier": "^3.5.2"
63
63
  },
64
64
  "engines": {
65
65
  "node": ">=14.15.0"
@@ -2,21 +2,20 @@
2
2
  "scripts": {
3
3
  "format": "npm run format:eslint && npm run format:prettier && npm run format:stylelint",
4
4
  "format:eslint": "eslint . --fix",
5
- "format:prettier": "prettier \"**/*.{js,ts,json,html}\" --write --ignore-path .prettierignore",
6
- "format:stylelint": "stylelint \"**/*.{scss,css}\" --fix --allow-empty-input --ignore-path .prettierignore",
7
- "lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:stylelint",
8
- "lint:eslint": "eslint .",
9
- "lint:prettier": "prettier \"**/*.{js,ts,json,html}\" --check --ignore-path .prettierignore",
10
- "lint:stylelint": "stylelint \"**/*.{scss,css}\" --allow-empty-input --ignore-path .prettierignore"
5
+ "format:prettier": "prettier \"**/*.{js,ts,css,scss,html,json}\" --write --ignore-path .prettierignore",
6
+ "format:stylelint": "stylelint \"{demo,src}/**/*.{js,ts,css,scss,html}\" --fix --ignore-path .prettierignore"
11
7
  },
12
8
  "lint-staged": {
13
9
  "**/*.{js,ts,html}": [
14
- "npm run format:eslint"
10
+ "npm run format:prettier",
11
+ "npm run format:eslint",
12
+ "npm run format:stylelint"
15
13
  ],
16
- "**/*.{js,ts,json,html}": [
14
+ "**/*.json": [
17
15
  "npm run format:prettier"
18
16
  ],
19
17
  "**/*.{scss,css}": [
18
+ "npm run format:prettier",
20
19
  "npm run format:stylelint"
21
20
  ]
22
21
  },
@@ -42,28 +41,44 @@
42
41
  },
43
42
  "stylelint": {
44
43
  "extends": "stylelint-config-standard-scss",
44
+ "allowEmptyInput": true,
45
45
  "rules": {
46
46
  "custom-property-pattern": null,
47
47
  "no-duplicate-selectors": null,
48
48
  "color-function-notation": null,
49
49
  "alpha-value-notation": null
50
- }
50
+ },
51
+ "overrides": [
52
+ {
53
+ "files": [
54
+ "**/*.html"
55
+ ],
56
+ "customSyntax": "postcss-html"
57
+ },
58
+ {
59
+ "files": [
60
+ "**/*.{ts,js}"
61
+ ],
62
+ "customSyntax": "postcss-lit"
63
+ }
64
+ ]
51
65
  },
52
66
  "devDependencies": {
53
- "@html-eslint/eslint-plugin": "^0.34.0",
54
- "@html-eslint/parser": "^0.34.0",
55
- "eslint": "^9.19.0",
67
+ "@html-eslint/eslint-plugin": "^0.35.0",
68
+ "@html-eslint/parser": "^0.35.0",
69
+ "eslint": "^9.21.0",
56
70
  "eslint-config-prettier": "^10.0.1",
71
+ "eslint-plugin-html": "^8.1.2",
57
72
  "eslint-plugin-import": "^2.31.0",
58
73
  "eslint-plugin-lit": "^1.15.0",
59
74
  "eslint-plugin-lit-a11y": "^4.1.4",
60
- "eslint-plugin-wc": "^2.2.0",
61
- "@typescript-eslint/parser": "^8.23.0",
62
- "typescript-eslint": "^8.23.0",
63
- "globals": "^15.14.0",
75
+ "eslint-plugin-wc": "^2.2.1",
76
+ "@typescript-eslint/parser": "^8.25.0",
77
+ "typescript-eslint": "^8.25.0",
78
+ "globals": "^16.0.0",
64
79
  "husky": "^9.1.7",
65
80
  "lint-staged": "^15.4.3",
66
- "prettier": "^3.4.2",
81
+ "prettier": "^3.5.2",
67
82
  "stylelint": "^16.14.1",
68
83
  "stylelint-config-standard-scss": "^14.0.0"
69
84
  }
@@ -7,8 +7,9 @@ import {configs as lit} from 'eslint-plugin-lit';
7
7
  import * as importPlugin from 'eslint-plugin-import';
8
8
  import tseslint from 'typescript-eslint';
9
9
  import tsParser from '@typescript-eslint/parser';
10
- import html from '@html-eslint/eslint-plugin';
11
- import htmlParser from '@html-eslint/parser';
10
+ import htmlEslint from '@html-eslint/eslint-plugin';
11
+ import htmlEslintParser from '@html-eslint/parser';
12
+ import eslintPluginHtml from 'eslint-plugin-html';
12
13
  import eslintConfigPrettier from 'eslint-config-prettier';
13
14
  import globals from 'globals';
14
15
 
@@ -108,14 +109,14 @@ const tsFilesRules = {
108
109
  };
109
110
 
110
111
  // @html-eslint/eslint-plugin
111
- const htmlFilesConfig = [html.configs['flat/recommended']].map((conf) => ({
112
+ const htmlFilesConfig = [htmlEslint.configs['flat/recommended']].map((conf) => ({
112
113
  ...conf,
113
114
  files: ['**/*.html'],
114
115
  plugins: {
115
- '@html-eslint': html,
116
+ '@html-eslint': htmlEslint,
116
117
  },
117
118
  languageOptions: {
118
- parser: htmlParser,
119
+ parser: htmlEslintParser,
119
120
  },
120
121
  }));
121
122
 
@@ -129,6 +130,12 @@ const htmlFilesRules = {
129
130
  },
130
131
  };
131
132
 
133
+ // @eslint-plugin-html
134
+ const eslintPluginHtmlConfig = {
135
+ files: ['**/*.html'],
136
+ plugins: {eslintPluginHtml},
137
+ };
138
+
132
139
  // eslint-config
133
140
  export default [
134
141
  {
@@ -149,7 +156,6 @@ export default [
149
156
  '**/*.config.*',
150
157
  '**/*.d.ts',
151
158
  '**/*.min.js',
152
- '**/*-styles.*',
153
159
  '**/*.workspace.*',
154
160
  ],
155
161
  },
@@ -165,6 +171,7 @@ export default [
165
171
  tsFilesRules,
166
172
  ...htmlFilesConfig,
167
173
  htmlFilesRules,
174
+ eslintPluginHtmlConfig,
168
175
  eslintConfigPrettier,
169
176
  {
170
177
  languageOptions: {
@@ -35,18 +35,20 @@
35
35
  "@open-wc/semantic-dom-diff": "^0.20.1",
36
36
  "@open-wc/testing": "^4.0.0",
37
37
  "playwright": "^1.50.1",
38
+ "postcss-html": "1.8.0",
39
+ "postcss-lit": "^1.2.0",
38
40
  "@types/mocha": "^10.0.10",
39
41
  "rollup-plugin-copy": "^3.5.0",
40
42
  "rollup-plugin-node-externals": "^8.0.0",
41
- "tinyglobby": "^0.2.10",
43
+ "tinyglobby": "^0.2.12",
42
44
  "concurrently": "^9.1.2",
43
45
  "sort-package-json": "^2.14.0",
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"
46
+ "@vitest/browser": "^3.0.7",
47
+ "@vitest/coverage-istanbul": "^3.0.7",
48
+ "@vitest/coverage-v8": "^3.0.7",
49
+ "@vitest/ui": "^3.0.7",
50
+ "vitest": "^3.0.7",
51
+ "vite": "^6.2.0"
50
52
  },
51
53
  "publishConfig": {
52
54
  "access": "public"
@@ -34,6 +34,4 @@
34
34
  **/*.d.ts
35
35
  **/package-lock.json
36
36
  **/*.min.js
37
- **/*-styles*.js
38
- **/*-styles*.ts
39
37
  **/CHANGELOG.md
@@ -21,7 +21,7 @@ const copyConfig = {
21
21
  // https://github.com/vitejs/vite/discussions/1736#discussioncomment-5126923
22
22
  const entries = Object.fromEntries(
23
23
  globSync(ENTRIES_GLOB).map((file) => {
24
- const [key] = file.match(new RegExp(`(?<=${ENTRIES_DIR}\/).*`)) || [];
24
+ const [key] = file.match(new RegExp(`(?<=${ENTRIES_DIR}/).*`)) || [];
25
25
  return [key?.replace(/\.[^.]*$/, ''), file];
26
26
  })
27
27
  );
@@ -40,7 +40,6 @@ export default defineConfig({
40
40
  browser: {
41
41
  enabled: true,
42
42
  headless: false,
43
- name: 'chromium',
44
43
  provider: 'playwright',
45
44
  screenshotFailures: false,
46
45
  viewport: {width: 1920, height: 1080},
@@ -51,6 +50,12 @@ export default defineConfig({
51
50
  devtools: true,
52
51
  args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu'],
53
52
  },
53
+ context: {},
54
+ },
55
+ {
56
+ browser: 'webkit',
57
+ launch: {},
58
+ context: {},
54
59
  },
55
60
  ],
56
61
  },
@@ -2,13 +2,13 @@ import {defineConfig} from 'vite';
2
2
  import {nodeExternals} from 'rollup-plugin-node-externals';
3
3
  import {globSync} from 'tinyglobby';
4
4
 
5
- const entriesDir = 'src';
6
- const entriesGlob = `${entriesDir}/**/*.ts`;
5
+ const ENTRIES_DIR = 'src';
6
+ const ENTRIES_GLOB = [`${ENTRIES_DIR}/**/*.js`];
7
7
 
8
8
  // https://github.com/vitejs/vite/discussions/1736#discussioncomment-5126923
9
9
  const entries = Object.fromEntries(
10
- globSync(entriesGlob).map((file) => {
11
- const [key] = file.match(new RegExp(`(?<=${entriesDir}\/).*`)) || [];
10
+ globSync(ENTRIES_GLOB).map((file) => {
11
+ const [key] = file.match(new RegExp(`(?<=${ENTRIES_DIR}/).*`)) || [];
12
12
  return [key?.replace(/\.[^.]*$/, ''), file];
13
13
  })
14
14
  );