@blockquote/create-wc 1.19.0 → 1.21.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.19.0",
3
+ "version": "1.21.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "LitElement",
@@ -2,11 +2,11 @@
2
2
  "scripts": {
3
3
  "format": "npm run format:eslint && npm run format:prettier && npm run format:stylelint",
4
4
  "format:eslint": "eslint \"**/*.{js,ts,html}\" --fix --ignore-path .eslintignore",
5
- "format:prettier": "prettier \"**/*.{js,ts,json,html,md}\" --write --ignore-path .eslintignore",
5
+ "format:prettier": "prettier \"**/*.{js,ts,json,html}\" --write --ignore-path .eslintignore",
6
6
  "format:stylelint": "stylelint \"**/*.{scss,css}\" --fix --allow-empty-input --ignore-path .eslintignore",
7
7
  "lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:stylelint",
8
8
  "lint:eslint": "eslint \"**/*.{js,ts,html}\" --ignore-path .eslintignore",
9
- "lint:prettier": "prettier \"**/*.{js,ts,json,html,md}\" --check --ignore-path .eslintignore",
9
+ "lint:prettier": "prettier \"**/*.{js,ts,json,html}\" --check --ignore-path .eslintignore",
10
10
  "lint:stylelint": "stylelint \"**/*.{scss,css}\" --allow-empty-input --ignore-path .eslintignore"
11
11
  },
12
12
  "husky": {
@@ -18,7 +18,7 @@
18
18
  "**/*.{js,ts,html}": [
19
19
  "npm run format:eslint"
20
20
  ],
21
- "**/*.{js,ts,json,html,md}": [
21
+ "**/*.{js,ts,json,html}": [
22
22
  "npm run format:prettier"
23
23
  ],
24
24
  "**/*.{scss,css}": [
@@ -93,14 +93,14 @@
93
93
  }
94
94
  },
95
95
  "devDependencies": {
96
- "@open-wc/eslint-config": "^8.0.2",
97
- "eslint": "^8.23.0",
96
+ "@open-wc/eslint-config": "^9.0.0",
97
+ "eslint": "^8.30.0",
98
98
  "eslint-config-prettier": "^8.5.0",
99
99
  "eslint-plugin-log-filenames": "^1.0.6",
100
- "husky": "^4.3.0",
101
- "lint-staged": "^13.0.3",
102
- "prettier": "^2.7.1",
103
- "stylelint": "^14.11.0",
100
+ "husky": "^4.3.8",
101
+ "lint-staged": "^13.1.0",
102
+ "prettier": "^2.8.1",
103
+ "stylelint": "^14.16.0",
104
104
  "stylelint-config-standard-scss": "^6.1.0"
105
105
  }
106
106
  }
@@ -10,6 +10,7 @@
10
10
  "author": "<%= tagName %>",
11
11
  "license": "MIT",
12
12
  "customElements": "custom-elements.json",
13
+ "type": "module",
13
14
  "scripts": {
14
15
  "start": "concurrently -k -r \"npm:sass:watch\" \"npm:vite\"",
15
16
  "vite": "vite",
@@ -20,22 +21,22 @@
20
21
  "postinstall": "npm run sort:package"
21
22
  },
22
23
  "dependencies": {
23
- "lit": "^2.3.1"
24
+ "lit": "^2.5.0"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@blockquote/rollup-plugin-total-bundlesize": "^1.0.0",
27
28
  "@blockquote/sass-style-template": "^2.1.2",
28
29
  "@blockquote/coverage-table-reporter": "^1.0.0",
29
- "@custom-elements-manifest/analyzer": "^0.6.4",
30
+ "@custom-elements-manifest/analyzer": "^0.6.6",
30
31
  "@ungap/global-this": "^0.4.4",
31
- "@web/dev-server": "^0.1.34",
32
+ "@web/dev-server": "^0.1.35",
32
33
  "@web/rollup-plugin-html": "^1.11.0",
33
- "@webcomponents/shadycss": "^1.11.0",
34
- "@webcomponents/webcomponentsjs": "^2.6.0",
35
- "concurrently": "^7.4.0",
34
+ "@webcomponents/shadycss": "^1.11.1",
35
+ "@webcomponents/webcomponentsjs": "^2.7.0",
36
+ "concurrently": "^7.6.0",
36
37
  "rollup-plugin-copy": "^3.4.0",
37
38
  "tiny-array-flat-polyfill": "^0.2.1",
38
- "vite": "^3.2.0",
39
+ "vite": "^4.0.2",
39
40
  "sort-package-json": "^2.1.0"
40
41
  },
41
42
  "publishConfig": {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable implicit-arrow-linebreak */
2
2
  import { defineConfig } from 'vite';
3
- import pluginHtml from '@web/rollup-plugin-html';
3
+ import { rollupPluginHTML as pluginHtml } from '@web/rollup-plugin-html';
4
4
  import copy from 'rollup-plugin-copy';
5
5
  import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize';
6
6
 
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "devDependencies": {
25
- "@typescript-eslint/eslint-plugin": "^5.36.2",
26
- "@typescript-eslint/parser": "^5.36.2"
25
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
26
+ "@typescript-eslint/parser": "^5.47.0"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@open-wc/testing": "^3.1.6",
3
+ "@open-wc/testing": "^3.1.7",
4
4
  "@web/test-runner": "^0.15.0",
5
5
  "@web/test-runner-playwright": "^0.9.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@open-wc/testing": "^3.1.6",
3
+ "@open-wc/testing": "^3.1.7",
4
4
  "@web/test-runner": "^0.15.0",
5
5
  "@web/test-runner-playwright": "^0.9.0"
6
6
  }
@@ -1,4 +1,22 @@
1
1
  {
2
+ "exports": {
3
+ ".": {
4
+ "default": "./index.js"
5
+ },
6
+ "./package.json": "./package.json",
7
+ "./src/<%= className %>.js": {
8
+ "default": "./src/<%= className %>.js"
9
+ },
10
+ "./define/<%= tagName %>.js": {
11
+ "default": "./define/<%= tagName %>.js"
12
+ },
13
+ "./index.js": {
14
+ "default": "./index.js"
15
+ },
16
+ "./src/styles/<%= className %>-styles.js": {
17
+ "default": "./src/styles/<%= className %>-styles.js"
18
+ }
19
+ },
2
20
  "main": "index.js",
3
21
  "module": "index.js",
4
22
  "files": [
@@ -1,13 +1,16 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
- <title>Demo <%= tagName %></title>
4
+ <title>Demo - <%= tagName %></title>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <meta charset="utf-8" />
7
- <meta name="description" content="<%= tagName %>">
7
+ <meta name="description" content="<%= tagName %>" />
8
8
  <style>
9
+ html,
9
10
  body {
10
- background: #fafafa;
11
+ height: 100%;
12
+ margin: 0;
13
+ font-family: sans-serif;
11
14
  }
12
15
  </style>
13
16
  </head>
@@ -1,7 +1,21 @@
1
1
  {
2
2
  "exports": {
3
- ".": "./dist/index.js",
4
- "./<%= tagName %>.js": "./dist/define/<%= tagName %>.js"
3
+ ".": {
4
+ "default": "./dist/index.js"
5
+ },
6
+ "./package.json": "./package.json",
7
+ "./src/<%= className %>.js": {
8
+ "default": "./dist/src/<%= className %>.js"
9
+ },
10
+ "./define/<%= tagName %>.js": {
11
+ "default": "./dist/define/<%= tagName %>.js"
12
+ },
13
+ "./index.js": {
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./src/styles/<%= className %>-styles.js": {
17
+ "default": "./dist/src/styles/<%= className %>-styles.js"
18
+ }
5
19
  },
6
20
  "main": "dist/index.js",
7
21
  "module": "dist/index.js",
@@ -18,7 +32,7 @@
18
32
  "wds": "web-dev-server"
19
33
  },
20
34
  "devDependencies": {
21
- "tslib": "^2.4.0",
22
- "typescript": "^4.8.3"
35
+ "tslib": "^2.4.1",
36
+ "typescript": "^4.9.4"
23
37
  }
24
38
  }
@@ -1,13 +1,16 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
- <title>Demo <%= tagName %></title>
4
+ <title>Demo - <%= tagName %></title>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <meta charset="utf-8" />
7
- <meta name="description" content="<%= tagName %>">
7
+ <meta name="description" content="<%= tagName %>" />
8
8
  <style>
9
+ html,
9
10
  body {
10
- background: #fafafa;
11
+ height: 100%;
12
+ margin: 0;
13
+ font-family: sans-serif;
11
14
  }
12
15
  </style>
13
16
  </head>