dojo
dojo copied to clipboard
[sozo] make `sozo dev` great again
trafficstars
This task it to create sozo dev <OPTIONS> and make it great again.
Problem
Common full stack dev flow is.
- Write contracts
- Write client
- Change contracts
If models/systems change in contracts, sozo build --typescript has to be run again, along with migration happening.
This is fine- but we can do better...
Solution
sozo dev <OPTIONS>
Running this command we could pass the following options:
--bindings OPTION (generates new bindings if systems/models change)
--migration OPTION (migrates when anything changes)
--testing OPTION (reruns tests)
This will then watch for file changes in the contracts directory and regenerate the bindings automatically.