yoga2 icon indicating copy to clipboard operation
yoga2 copied to clipboard

Initialize scaffolding command through `yoga dev`

Open Weakky opened this issue 5 years ago • 1 comments

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/

Weakky avatar Jan 23 '19 19:01 Weakky

Jest’s interactive cli when in watch mode is a great example of such behaviour.

kandros avatar Mar 03 '19 14:03 kandros