-
-
Notifications
You must be signed in to change notification settings - Fork 156
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(nx-plugin): add NX Plugin with OpenAPI client generator and executor #1909
base: main
Are you sure you want to change the base?
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
c5c265e
to
6173f6f
Compare
c8eb060
to
293e95a
Compare
0c82add
to
d883d59
Compare
914a287
to
a8a003c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1909 +/- ##
==========================================
- Coverage 24.14% 22.35% -1.80%
==========================================
Files 193 250 +57
Lines 26861 21024 -5837
Branches 787 781 -6
==========================================
- Hits 6486 4699 -1787
+ Misses 20300 16319 -3981
+ Partials 75 6 -69
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
45af67b
to
be87ceb
Compare
39ff5df
to
72528fe
Compare
…es in update-api executor
logger.debug('No existing spec file found. Creating...'); | ||
} | ||
logger.debug(`Writing new spec to: ${absoluteExistingSpecPath}`); | ||
writeFileSync(absoluteExistingSpecPath, newSpecString); |
Check failure
Code scanning / CodeQL
Potential file system race condition High
was checked
1cc2b2a
to
cab0393
Compare
cab0393
to
8a1303d
Compare
8a1303d
to
1e742a1
Compare
1e742a1
to
128b22f
Compare
128b22f
to
89ed489
Compare
This NX plugin will generate an NX package from an OpenAPI spec file and run the openapi-ts on the spec.
This is useful for NX projects.
Also very useful to let AI agents know how to use the plugin to automate setting up client code to fit into an NX project.
TODO:
Stretch in this PR:
Questions:
Q: How to handle when the OpenAPI spec file updates?
A: We have added an executor and a call to each generated project. Each project can run that executor to update the spec file and regenerate the client code.