Open guledali opened 4 years ago
Could you give some more info about what you see this creating? Maybe a screenshot even?
You said it should include "some form inputs and submit button for adding, updating or deleting something" but isn't that what the scaffolds already do? Or is this is just for a single Cell?
We do have a cell generator, could this be an additional flag you send to that generator that will include something more in the body of the component?
Just generating a single cell for mutation as sample code, not really scaffold let say you only need to add/create contact.
Scaffold gives you an entire crud + styling, something less than that. Much similar to the cell concept.
Should be a simple generator for cases like this yarn rw g mutation new contact
It gives you the bare bones structure for creating a mutation.
yarn rw g mutation [edit|delete|new] <name>
It generates a skeleton of component with some form inputs and submit button for adding, updating or deleting something look for the existing scaffold as an inspiration,
https://github.com/redwoodjs/redwood/tree/master/packages/cli/src/commands/generate/scaffold/templates/components