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

GraphQL Code Generator v3: @graphql-codegen/cli changes #8301

Merged
merged 13 commits into from Aug 31, 2022
Merged

Conversation

charlypoly
Copy link
Contributor

Introduces support for TypeScript config file and a new preset lifecycle (required for client-preset)

@charlypoly charlypoly self-assigned this Aug 30, 2022
@vercel
Copy link

vercel bot commented Aug 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
graphql-code-generator ✅ Ready (Inspect) Visit Preview Aug 30, 2022 at 0:49AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Aug 30, 2022

🦋 Changeset detected

Latest commit: a87a2f5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@graphql-codegen/cli Minor
@graphql-cli/codegen Minor
@graphql-codegen/plugin-helpers Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@n1ru4l
Copy link
Collaborator

n1ru4l commented Aug 30, 2022

Should we also do the doc updates for recommending a typescript config as part of this PR?

@github-actions
Copy link
Contributor

github-actions bot commented Aug 30, 2022

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-cli/codegen 2.4.0-alpha-20220831100432-60aa8e1e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/cli 2.12.0-alpha-20220831100432-60aa8e1e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-graphql-request 4.5.4-alpha-20220831100432-60aa8e1e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-rtk-query 2.3.4-alpha-20220831100432-60aa8e1e6 npm ↗︎ unpkg ↗︎
@graphql-codegen/plugin-helpers 2.7.0-alpha-20220831100432-60aa8e1e6 npm ↗︎ unpkg ↗︎

@charlypoly
Copy link
Contributor Author

Should we also do the doc updates for recommending a typescript config as part of this PR?

@n1ru4l, done in b42d628

@github-actions
Copy link
Contributor

diff --git a/website/algolia-lockfile.json b/website/algolia-lockfile.json
index 248184a4a..4e93f7916 100644
--- a/website/algolia-lockfile.json
+++ b/website/algolia-lockfile.json
@@ -1145,7 +1145,7 @@
     "objectID": "code-generator-index",
     "headings": [],
     "toc": [],
-    "content": "d41d8cd98f00b204e9800998ecf8427e",
+    "content": "a2c44aa2037429070a236ab7c430faba",
     "url": "https://www.graphql-code-generator.com//index",
     "domain": "https://www.graphql-code-generator.com/",
     "hierarchy": [],
@@ -1217,7 +1217,7 @@
     "objectID": "code-generator-plugins-index",
     "headings": [],
     "toc": [],
-    "content": "d41d8cd98f00b204e9800998ecf8427e",
+    "content": "329d4b572e55accae5af460934690e73",
     "url": "https://www.graphql-code-generator.com/plugins/index",
     "domain": "https://www.graphql-code-generator.com/",
     "hierarchy": ["Plugins"],

@github-actions
Copy link
Contributor

🚀 Website Preview

The latest changes to the website are available as preview in: https://5f464d5c.graphql-code-generator.pages.dev

@charlypoly charlypoly merged commit 2ed21a4 into master Aug 31, 2022
@charlypoly charlypoly deleted the v3-cli branch August 31, 2022 14:33
const config: CodegenConfig = {
schema: 'server/src/**/*.graphql',
documents: 'client/src/**/*.graphql'
generates {
Copy link
Contributor

Choose a reason for hiding this comment

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

missing a : I think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so. Because : exisits after generates in the other file.

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.

None yet

5 participants