-
-
Notifications
You must be signed in to change notification settings - Fork 177
Request NX plugin #1910
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
Comments
Can you link me to any documentation where I can read more about what you're building/solving? |
|
And you'll be using this to create a client that's always up-to-date with the spec? Something like Nuxt modules or Vite plugin? |
My goal is to give the NX workspace users commands to generate package and update the client code in packages. The user could run something as |
Example repo showing a local NX plugin that adds a generator that will generate an package from an OpenAPI spec. To run, `npm install && nx run @test-plugin/nx-plugin:build && nx g @test-plugin/nx-plugin:openapi-client pokemon-api --directory ./packages --scope @test-api --client @hey-api/client-fetch --spec https://raw.githubusercontent.com/seriouslag/pokemon-api-spec/refs/heads/main/spec.yaml --plugins @tanstack/react-query |
How will you compare specs? Why did you decide to use Redocli CLI vs something we already have in the repository? Will you write the documentation for this plugin as well? I'll probably have more questions later! |
Q: How will you compare specs? Q: Why did you decide to use Redocli CLI vs something we already have in the repository? Q: Will you write the documentation for this plugin as well?
Looking forward to it. |
@mrlubos Removed Redocli, in favor of using functions in openapi-ts. |
Uh oh!
There was an error while loading. Please reload this page.
Description
An NX plugin with a generator to generate NX package and update spec/client code when a command is run.
Running the NX generator would ask for the spec file and project name, then output a new NX project with client code generated from openapi-ts.
The generated project would have an executor that could update the spec file and generate new client code.
This would be helpful when integrating into NX monorepos.
NX plugin docs
NX plugin getting started
PR of NX plugin
Example repo
The text was updated successfully, but these errors were encountered: