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

spike: investigate ways to support packages which hook into the codegen step #474

Closed
felangel opened this issue Jan 17, 2023 · 2 comments
Closed
Assignees
Labels
spike Investigation needed

Comments

@felangel
Copy link
Contributor

As a developer, I want to be able to write a Dart Frog package which is able to integrate into the Dart Frog build step and affect the generated output so that I can provide valuable functionality without having to contribute to the core Dart Frog package directly.

Examples:

Client Generation: it would be nice to be able to create a separate, standalone package to handle client generation in Dart Frog without having to bloat the core package

Open API Generation: it would be nice to be able to create a separate, standalone package to handler open api documentation generation in Dart Frog without having to bloat the core package

WebSockets: if this capability were available, it would allow for improvements to the Dart Frog WebSocket API like:

FutureOr<void> onSocketConnection(channel, protocol) async {...}
@renancaraujo
Copy link
Contributor

renancaraujo commented Oct 6, 2023

Hello, after some research I created this design doc with some gameplan for to happen.

In summary, it is possible to create a plugin system for Dart Frog.
Dart Frog Cli would then be responsible for registering and running plugin code on build and dev.

@tomarra
Copy link
Contributor

tomarra commented Oct 27, 2023

We have the documentation written up for this so closing this as "Complete". Need to figure out prioritization next.

@tomarra tomarra closed this as completed Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spike Investigation needed
Projects
Development

No branches or pull requests

5 participants