mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
3822e574aa
* 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 |
||
---|---|---|
.. | ||
index.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
Astro Starter Kit: Integration Package
This is a template for an Astro integration. Use this template for writing integrations to use in multiple projects or publish to NPM.
npm create astro@latest -- --template integration
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── index.ts
├── tsconfig.json
├── package.json
The index.ts
file is the "entry point" for your integration. Export your integration in index.ts
to make them importable from your package.
🧞 Commands
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm link |
Registers this package locally. Run npm link my-integration in an Astro project to install your integration |
npm publish |
Publishes this package to NPM. Requires you to be logged in |