summaryrefslogtreecommitdiff
path: root/examples/framework-lit/src/components/my-counter.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2024-08-19 08:12:33 -0400
committerGravatar GitHub <noreply@github.com> 2024-08-19 08:12:33 -0400
commit3822e574aa1d779020983a2d9815b3974a9d911a (patch)
treee73bc12683498256f3a27c3d57033427f0eff71a /examples/framework-lit/src/components/my-counter.js
parent7ffcae19064a8c912a7d5e8c943952923d20edc5 (diff)
downloadastro-3822e574aa1d779020983a2d9815b3974a9d911a.tar.gz
astro-3822e574aa1d779020983a2d9815b3974a9d911a.tar.zst
astro-3822e574aa1d779020983a2d9815b3974a9d911a.zip
Remove @astrojs/lit (#11680)
* Remove @astrojs/lit This removes the Lit integration as an official integration. The reasons for doing so in 5.0: - Only 1% of Astro users use this integration. - SSR support in Lit is at a lower-level of support due to be a Labs project: https://lit.dev/docs/libraries/labs/, and has been in this state since we added support a couple of years ago. - The maintenance cost of fixing bugs in this integration is too high given the low usage. Some PRs for upgrading Lit versions have taken quite a long time. We can't justify the core team being responsible for this going forward. - There used to be community contributions to fix bugs but this has fallen off for various reasons. Given that, this PR removes the integration as one that is officially supported by the Astro core team. Interested community members are encouraged to fork the integration and continue the development in another repository. * Remove e2e tests and examples * Update lockfile * Remove ssr-lit.test.js * Remove error for no client entrypoint * Remove auto selection of the Lit renderer * Remove lit package.json * Remove lit fixture
Diffstat (limited to 'examples/framework-lit/src/components/my-counter.js')
-rw-r--r--examples/framework-lit/src/components/my-counter.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/examples/framework-lit/src/components/my-counter.js b/examples/framework-lit/src/components/my-counter.js
deleted file mode 100644
index adc9e4a3d..000000000
--- a/examples/framework-lit/src/components/my-counter.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { LitElement, html } from 'lit';
-
-export class MyCounter extends LitElement {
- static get properties() {
- return {
- count: {
- type: Number,
- },
- };
- }
-
- constructor() {
- super();
- this.count = 0;
- }
-
- increment() {
- this.count++;
- }
-
- render() {
- return html`
- <div>
- <p>Count: ${this.count}</p>
-
- <button type="button" @click=${this.increment}>Increment</button>
- </div>
- `;
- }
-}
-
-customElements.define('my-counter', MyCounter);