Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Adding @shopify/api-codegen-preset package #1044

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Conversation

paulomarg
Copy link
Contributor

@paulomarg paulomarg commented Nov 8, 2023

WHY are these changes introduced?

We want to be able to generate TS types from GraphQL queries. The approach we've decided to use is to run GraphQL codegen to parse the queries and produce those types, then integrate the types with our clients.

WHAT is this pull request doing?

Since it takes a little bit of configuration to get codegen to do exactly what we want, we're introducing a package to wrap around that configuration and provide abstractions at different layers to enable apps to have full control over how to parse their files.

Checklist

  • I have used yarn changeset to create a draft changelog entry (do NOT update the CHANGELOG.md file manually)
  • I have added/updated tests for this change
  • I have documented new APIs/updated the documentation for modified APIs (for public APIs)

Sorry, something went wrong.

@paulomarg paulomarg requested a review from a team as a code owner November 8, 2023 14:58
@paulomarg paulomarg requested review from melissaluu, scottdixon and a team and removed request for a team November 8, 2023 14:58
@paulomarg paulomarg force-pushed the add_codegen_preset_package branch from de48142 to 4072aef Compare November 8, 2023 15:05
@paulomarg paulomarg changed the title Adding @shopify/codegen-preset package Adding @shopify/api-codegen-preset package Nov 8, 2023
Copy link
Contributor

@melissaluu melissaluu left a comment

Choose a reason for hiding this comment

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

🚀 Looks amazing!
Other than the small style change in the README, this looks good!

@paulomarg paulomarg force-pushed the add_codegen_preset_package branch 2 times, most recently from f2f9934 to febddbf Compare November 8, 2023 20:42
Copy link
Contributor

@scottdixon scottdixon left a comment

Choose a reason for hiding this comment

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

🙌

@paulomarg paulomarg force-pushed the add_codegen_preset_package branch from febddbf to 4b1f031 Compare November 9, 2023 20:26
Base automatically changed from sd-admin-client to main November 10, 2023 01:00
@paulomarg paulomarg force-pushed the add_codegen_preset_package branch from 4b1f031 to 8b805ec Compare November 10, 2023 14:20
@paulomarg paulomarg force-pushed the add_codegen_preset_package branch from 8b805ec to e5796da Compare November 10, 2023 14:26
@paulomarg paulomarg merged commit 2a0b17d into main Nov 10, 2023
@paulomarg paulomarg deleted the add_codegen_preset_package branch November 10, 2023 15:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants