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

Add graphql-codegen support #305

Merged
merged 4 commits into from
Oct 23, 2023
Merged

Conversation

beaussan
Copy link
Contributor

This PR introduce support for Graphql-codegen to knip.

This inclues all the different config format, all with types coming from the lib itself to ensure we are reading the correct values.

I'v added

  • docs
  • tests with the different format and source of config

However, I have a small issue, for some reason, the plugin won't read package.json, I have to figure out why

@webpro
Copy link
Collaborator

webpro commented Oct 22, 2023

Thanks, happy to merge this one when it's finished, almost there I guess!

However, I have a small issue, for some reason, the plugin won't read package.json, I have to figure out why

Sorry about that, will update plugin template & docs. Just pushed a commit: plugins need the PACKAGE_JSON_PATH when the key in package.json does not match the plugin name.

@beaussan beaussan marked this pull request as ready for review October 23, 2023 07:42
Copy link
Collaborator

@webpro webpro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nitpick, happy to merge then

src/plugins/postcss/index.ts Outdated Show resolved Hide resolved
@beaussan
Copy link
Contributor Author

And this should now be all good !

@webpro webpro merged commit eb64c62 into webpro-nl:main Oct 23, 2023
10 checks passed
@webpro
Copy link
Collaborator

webpro commented Oct 23, 2023

Thanks, Nicolas! Again, great work, I really appreciate everything you do for Knip 🙏

@webpro
Copy link
Collaborator

webpro commented Oct 23, 2023

🚀 This pull request is included in v2.38.0. See Release 2.38.0 for release notes.

@eppisapiafsl
Copy link

❤️ this is amazing, thanks for adding it

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