Skip to content

Commit

Permalink
Remove @astrojs/lit (#11680)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
matthewp authored Aug 19, 2024
1 parent 7ffcae1 commit 3822e57
Show file tree
Hide file tree
Showing 56 changed files with 3 additions and 2,196 deletions.
1 change: 0 additions & 1 deletion examples/framework-lit/.codesandbox/Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions examples/framework-lit/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion examples/framework-lit/.npmrc

This file was deleted.

4 changes: 0 additions & 4 deletions examples/framework-lit/.vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions examples/framework-lit/.vscode/launch.json

This file was deleted.

11 changes: 0 additions & 11 deletions examples/framework-lit/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions examples/framework-lit/astro.config.mjs

This file was deleted.

19 changes: 0 additions & 19 deletions examples/framework-lit/package.json

This file was deleted.

12 changes: 0 additions & 12 deletions examples/framework-lit/public/assets/logo.svg

This file was deleted.

9 changes: 0 additions & 9 deletions examples/framework-lit/public/favicon.svg

This file was deleted.

106 changes: 0 additions & 106 deletions examples/framework-lit/src/components/Lorem.astro

This file was deleted.

17 changes: 0 additions & 17 deletions examples/framework-lit/src/components/calc-add.js

This file was deleted.

32 changes: 0 additions & 32 deletions examples/framework-lit/src/components/my-counter.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/framework-lit/src/env.d.ts

This file was deleted.

35 changes: 0 additions & 35 deletions examples/framework-lit/src/pages/index.astro

This file was deleted.

3 changes: 0 additions & 3 deletions examples/framework-lit/tsconfig.json

This file was deleted.

4 changes: 2 additions & 2 deletions examples/integration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default function createIntegration(): AstroIntegration {
// https://github.com/withastro/astro/blob/main/packages/integrations/react/src/index.ts
},
'astro:build:setup': () => {
// See the @astrojs/lit integration for an example
// https://github.com/withastro/astro/blob/main/packages/integrations/lit/src/index.ts
// See the @astrojs/react integration for an example
// https://github.com/withastro/astro/blob/main/packages/integrations/react/src/index.ts
},
'astro:build:done': () => {
// See the @astrojs/partytown integration for an example
Expand Down
10 changes: 0 additions & 10 deletions packages/astro/e2e/fixtures/lit-component/astro.config.mjs

This file was deleted.

11 changes: 0 additions & 11 deletions packages/astro/e2e/fixtures/lit-component/package.json

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3822e57

Please sign in to comment.