Hey! Does anyone have any guidance on how I might be able to customize the component generation script? More specifically, the output from running yarn rw g component ExampleName
. I’d like to add some interfaces I keep reusing to the scaffold script. I was unable to find this in the Redwood project. Tips?
Have a look at the setup generator command:
Copies a given generator’s template files to your local app for customization. The next time you generate that type again, it will use your custom template instead of Redwood’s default.
I think it should do what you need.
Perfect! Thank you!