@blockquote/create-wc 1.11.0 → 1.14.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.11.0",
3
+ "version": "1.14.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
  }
@@ -22,7 +22,6 @@ screenshots/.diff
22
22
 
23
23
 
24
24
  ## build
25
- *.config.js
26
25
  _site
27
26
  dist
28
27
  dev
@@ -34,6 +33,7 @@ storybook-static
34
33
  ## end gitignore
35
34
 
36
35
  ## specific eslintignore
36
+ *.config.js
37
37
  package-lock.json
38
38
  *.min.js
39
39
  *-styles.*
@@ -22,7 +22,6 @@ screenshots/.diff
22
22
 
23
23
 
24
24
  ## build
25
- *.config.js
26
25
  _site
27
26
  dist
28
27
  dev
@@ -16,7 +16,6 @@
16
16
  "dev:vite": "vite build",
17
17
  "preview:vite": "vite preview",
18
18
  "analyze": "cem analyze --litelement --globs \"{src,define}/**/*.{js,ts}\" \"index.js\"",
19
- "analyze:watch": "cem analyze --litelement --globs \"{src,define}/**/*.{js,ts}\" \"index.js\" --watch",
20
19
  "sort:package": "npx sort-package-json",
21
20
  "postinstall": "npm run sort:package"
22
21
  },
@@ -37,7 +36,7 @@
37
36
  "rollup-plugin-copy": "^3.4.0",
38
37
  "rollup-plugin-minify-html-literals": "^1.2.6",
39
38
  "tiny-array-flat-polyfill": "^0.2.1",
40
- "vite": "^2.9.10",
39
+ "vite": "^3.0.0",
41
40
  "sort-package-json": "^1.52.0"
42
41
  },
43
42
  "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
+ }