-
Notifications
You must be signed in to change notification settings - Fork 294
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
Conversation
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
"dev": "shopify hydrogen dev --codegen", | ||
"dev": "shopify hydrogen dev", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
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.