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

CLI command to create a new isograph config #68

Open
rbalicki2 opened this issue Apr 16, 2024 · 3 comments
Open

CLI command to create a new isograph config #68

rbalicki2 opened this issue Apr 16, 2024 · 3 comments
Labels
good first issue Good for newcomers

Comments

@rbalicki2
Copy link
Collaborator

Also we should update the quick start accordingly

@rbalicki2 rbalicki2 added the good first issue Good for newcomers label Apr 16, 2024
@lanesawyer
Copy link

I've got experience with clap and am interested in this issue.

I noticed you're using structop but that project was essentially consumed by clap a while back and the project is in maintenance mode. Any opposition to moving to clap as part of this CLI improvement, or are you deliberately avoiding the extra overhead (and features) of clap?

@rbalicki2
Copy link
Collaborator Author

  • 100%, happy to migrate to clap! There is no concrete reason we're using structopt.
  • Love it! Let's hop on a call at some point in time and discuss details. Can you join the #isograph channel on the discord, where we can figure out a good time (https://discord.gg/kDCcN3EDR6)?

@rbalicki2
Copy link
Collaborator Author

The gist of this (poorly written) issue is:

  • I would like to add a subcommand, along the lines of https://nextjs.org/docs/pages/api-reference/create-next-app that asks you several things. We can provide default values (or lack of values) for the other Isograph config items:
    • where is the graphql schema,
    • where is the folder where Isograph components are located
    • should we modify the tsconfig.json (to add "@iso": ["./src/components/__isograph/iso.ts"],)
    • should we create or modify .babelrc.json?
  • this CLI command should create the isograph.config.json and optionally modify the other files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants