Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add initial plugin support #512

Merged
merged 2 commits into from
Aug 9, 2022
Merged

feat: add initial plugin support #512

merged 2 commits into from
Aug 9, 2022

Conversation

lucacasonato
Copy link
Member

This commit adds initial support for fresh "plugins". These are bundles
of functionality that can be added to a fresh plugin through a simple
addition in the main.ts file.

Right now plugins are only able to hook into the render steps. This
means that they can inject styling and scripts. They can not yet hook
into routing.

Things that I think should be possible now:

  • styling integrations for twind, unocss, and probably a few other tools

Things that are not possible yet:

  • google analytics middleware
  • database connectors
  • CMS connectors

The routing additions to plugins can be added in a follow-up though.

@excessivecoding
Copy link
Contributor

Looks pretty awesome already, can't wait to see how much would be possible in the future with this plugin system 🔥

@drawveloper
Copy link

This looks great! And it goes in the direction of this request: #516

Looking forward to being able to inject middlewares with a line on main.ts too.

This commit adds initial support for fresh "plugins". These are bundles
of functionality that can be added to a fresh plugin through a simple
addition in the `main.ts` file.

Right now plugins are only able to hook into the render steps. This
means that they can inject styling and scripts. They can not yet hook
into routing.

Things that I think should be possible now:
- styling integrations for twind, unocss, and probably a few other tools

Things that are not possible yet:
- google analytics middleware
- database connectors
- CMS connectors

The routing additions to plugins can be added in a follow-up though.
@lucacasonato lucacasonato merged commit fd4e2bb into main Aug 9, 2022
@lucacasonato lucacasonato deleted the plugins branch August 9, 2022 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants