yoga2
yoga2 copied to clipboard
Initialize scaffolding command through `yoga dev`
Description
In order to remove friction in the development workflow, we could introduce a way to execute commands without having to kill the yoga process, run the command, and re-run yoga dev
Proposal
One use-case would be the scaffold
command.
$ yoga dev
** Starting **
🚀 Server ready at http://localhost:4000/
scaffold
? Input the name of your type: Test
Scaffolded new file at ./src/graphql/Test.ts
Next steps:
- Go to ./src/graphql/Test.ts
- Expose your fields
** Restarting **
🚀 Server ready at http://localhost:4000/
Jest’s interactive cli when in watch mode is a great example of such behaviour.