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

npx command for creating templates bootstrap like Next.js create-yoga #1354

Open
Tracked by #1358
Urigo opened this issue Jul 6, 2022 · 3 comments · May be fixed by #2698
Open
Tracked by #1358

npx command for creating templates bootstrap like Next.js create-yoga #1354

Urigo opened this issue Jul 6, 2022 · 3 comments · May be fixed by #2698
Assignees
Milestone

Comments

@Urigo
Copy link
Collaborator

Urigo commented Jul 6, 2022

Similar to create-next-app (maybe we can even use/fork/contribute to their code) we want to create a CLI package which can be used to bootstrap a Yoga app. It should allow bootstrapping different ways yoga can be used.

Examples

  • npx create-yoga my-next-example --tenplate=next --ts this will create a NextJS app in which we have Yoga as /api/graphql
  • npx create-yoga my-node-app this is the default where it bootstraps a simple Node-js app with raw HTTP to use GraphQL Yoga

Options

---template=: default these are all the integrations GraphQL Yoga supports. Basically we can point this to our examples we have in this repo to bootstrap. So the folder name in that directory become the name for template flag. If you give a GitHub repo or path then it will bootstrap from that

  • --use-npm: To explicitly bootstrap with npm
  • --use-pnpm: To explicitly bootstrap with pnpm
@Urigo Urigo added this to the v3 milestone Jul 6, 2022
@theguild-bot theguild-bot mentioned this issue Jul 6, 2022
@b4s36t4
Copy link
Contributor

b4s36t4 commented Jul 9, 2022

Hey, @Urigo . Want to work on this issue. Is there any document more on this issue to get a good idea on this.?

Thanks.

@saihaj
Copy link
Collaborator

saihaj commented Jul 11, 2022

hey @b4s36t4 I have update the description for this issue. Let me know if something needs clarification or if you have any questions.

@n1ru4l
Copy link
Collaborator

n1ru4l commented Sep 26, 2023

another inspiration: https://reddit.com/r/graphql/s/ItUaesAfZT

This was referenced May 7, 2024
This was referenced May 23, 2024
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 a pull request may close this issue.

4 participants