@blockquote/create-wc 1.10.0 → 1.13.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.10.0",
3
+ "version": "1.13.0",
4
4
  "description": "Web component with Lit scaffolding - Extending Open Web Component",
5
5
  "keywords": [
6
6
  "LitElement",
@@ -101,6 +101,6 @@
101
101
  "lint-staged": "^13.0.1",
102
102
  "prettier": "^2.4.1",
103
103
  "stylelint": "^14.0.0",
104
- "stylelint-config-standard-scss": "^4.0.0"
104
+ "stylelint-config-standard-scss": "^5.0.0"
105
105
  }
106
106
  }
@@ -37,7 +37,7 @@
37
37
  "rollup-plugin-copy": "^3.4.0",
38
38
  "rollup-plugin-minify-html-literals": "^1.2.6",
39
39
  "tiny-array-flat-polyfill": "^0.2.1",
40
- "vite": "^2.9.10",
40
+ "vite": "^3.0.0",
41
41
  "sort-package-json": "^1.52.0"
42
42
  },
43
43
  "publishConfig": {
@@ -3,7 +3,7 @@ import { property } from 'lit/decorators.js';
3
3
  import styles from './styles/<%= className %>-styles.js';
4
4
 
5
5
  export class <%= className %> extends LitElement {
6
- static get is() {
6
+ static get is(): string {
7
7
  return '<%= tagName %>';
8
8
  }
9
9
 
@@ -24,13 +24,13 @@ export class <%= className %> extends LitElement {
24
24
  override render() {
25
25
  return html`
26
26
  <h1>${this.sayHello(this.heading)}!</h1>
27
- <button @click=${this._onClick}>Counter: ${this.counter}</button>
27
+ <button @click=${this.#onClick}>Counter: ${this.counter}</button>
28
28
  <hr />
29
29
  <slot></slot>
30
30
  `;
31
31
  }
32
32
 
33
- private _onClick() {
33
+ #onClick() {
34
34
  this.counter += 1;
35
35
  this.dispatchEvent(new CustomEvent('counter-changed', { detail: this.counter }));
36
36
  }
@@ -44,3 +44,9 @@ export class <%= className %> extends LitElement {
44
44
  return `Hello, ${heading}`;
45
45
  }
46
46
  }
47
+
48
+ declare global {
49
+ interface HTMLElementTagNameMap {
50
+ '<%= tagName %>': <%= className %>;
51
+ }
52
+ }
@@ -7,6 +7,7 @@
7
7
  "declarationMap": true,
8
8
  "sourceMap": true,
9
9
  "inlineSources": true,
10
+ "esModuleInterop": true,
10
11
  "outDir": "./dist",
11
12
  "rootDirs": ["./src", "./define", ".test/"],
12
13
  "strict": true,
@@ -22,6 +23,6 @@
22
23
  "forceConsistentCasingInFileNames": true,
23
24
  "noImplicitOverride": true
24
25
  },
25
- "include": ["src/**/*.ts", "define/**/*.ts", "test/**/*.ts", "./index.ts"],
26
- "exclude": ["node_modules"]
26
+ "include": ["src/**/*.ts", "define/**/*.ts", "test/**/*.ts", "./index.ts", "types/**/*.d.ts"],
27
+ "exclude": ["node_modules/**"]
27
28
  }