We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for this extension!
Graphql-codegen cli uses cosmiconfig to load config file. It would be great if we could set custom config path.
The text was updated successfully, but these errors were encountered:
+1 I prefer JSON config over YML and this extension doesn't seem to work with it.
Sorry, something went wrong.
maybe a simple glob and support for multiple configs (mono repositories like nx)
import {sync} from 'fast-glob'; const configs = sync(`${firstWorkspaceDirectory()}/**/codegen.{yml,yaml}`)
Creating a Record<string, CodegenContext> where each codegen config holds their context.
Record<string, CodegenContext>
for example:
{ "apps/my-frontend/codegen.yml": {...}, "libs/other/lib/codegen.yml": {...}, ... }
The codegen.yml could then use workspace relative paths:
codegen.yml
# libs/other/lib/codegen.yml generates: libs/invotheroice/lib/src/: preset: near-operation-file plugins: - typescript-operations - typescript-urql
# apps/my-frontend/codegen.yml generates: apps/my-frontend/src/: preset: near-operation-file plugins: - typescript-operations - typescript-urql
@patryk-smc this extension should now be able to load all extensions supported by codegen in version 0.9.6
I will add a config for custom path in 1.0.0
No branches or pull requests
Thanks for this extension!
Graphql-codegen cli uses cosmiconfig to load config file. It would be great if we could set custom config path.
The text was updated successfully, but these errors were encountered: