Open Martinsos opened 1 year ago
This could also be generalized via "Wasp lifecycle hooks". If we has such hooks, we could define in "pre-start" hook that we want to overwrite certain templates with other templates. Although it would then also be important to somehow reset them hm. Ok, maybe doing it via Wasp lifecycle hooks is not the best solution due to the need to reset them, so the remains don't remain for another project. Or, if we had a hook which is able to modify template files specifically, than that is a straightforward solution.
@Zeko369 (what a surprise, since he is known for practicing patching/hacking Wasp templates :D) suggested that we might consider adding a mechanism for patching the generated Wasp code / templates.
So right now, if you want to change how Wasp does some things internally, you can:
Patching mechanism could work in two ways: