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

Move Codegen dependencies to templates #1962

Merged
merged 11 commits into from
Apr 10, 2024
Merged

Move Codegen dependencies to templates #1962

merged 11 commits into from
Apr 10, 2024

Conversation

frandiox
Copy link
Contributor

@frandiox frandiox commented Apr 9, 2024

Now that we have been running codegen for a while and it seems robust, it's time to move the dependencies to the template.
This will make creating new projects a bit faster since we don't need to install all the GraphQL / Codegen sub dependencies globally.

@frandiox frandiox requested a review from a team April 9, 2024 18:48
Copy link
Contributor

shopify bot commented Apr 9, 2024

Oxygen deployed a preview of your fd-defer-codegen branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
vite ✅ Successful (Logs) Preview deployment Inspect deployment April 10, 202410:50 AM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment April 10, 202410:50 AM
subscriptions ✅ Successful (Logs) Preview deployment Inspect deployment April 10, 202410:50 AM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment April 10, 202410:50 AM
skeleton ✅ Successful (Logs) Preview deployment Inspect deployment April 10, 202410:50 AM
optimistic-cart-ui ✅ Successful (Logs) Preview deployment Inspect deployment April 10, 202410:50 AM

Learn more about Hydrogen's GitHub integration.

"dev": "shopify hydrogen dev --codegen",
"dev": "shopify hydrogen dev",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was it removed here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this caught my attention too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is in hello-world template. This template is not yet even updated to Vite, and it does not have generated types for queries. Instead of adding the codegen dependencies in this template, I'm just removing the --codegen flag to keep it minimal 🤔

"dev": "shopify hydrogen dev --codegen",
"dev": "shopify hydrogen dev",
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this caught my attention too.

@frandiox frandiox merged commit 646b78d into main Apr 10, 2024
13 checks passed
@frandiox frandiox deleted the fd-defer-codegen branch April 10, 2024 10:57
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

3 participants