Closed solomondefi-dev closed 2 years ago
There are a few thoughts on this issue. Using a git hook is a good idea.
1. Check target files exist
It should be not necessary after the initial generation and committed files.
2. Check source files status
Nx is quite good at doing this kind of task. We could define a command for the
dispute
app to generate the schemas and Nx monitor the change of the event types.
We already generate the schema & types, now we just need to generate the Typechain types in the git hook.
This can be handled together with #168
:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Per @apolkingg8 - Adding generated files to git may cause sync issues if developers forget to regenerate from the source. A better way is to add a git
pre-commit
hook and do the following steps:Currently, we have the following targets:
@apolkingg8 I will icebox this since it's not critical, but it will be nice to have if more developers are added.