Watch for contract changes to run deploy/test #865
ByteAtATime
started this conversation in
Ideas
Replies: 1 comment
-
I think (2) is not worth it, especially if we need to add an extra dep. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I believe a nice QoL feature would be to have a command to automatically deploy/test contracts when they change. I'm definitely down to submit a PR for this, but I'm thinking we use
nodemon
for watching/command running. I would definitely consider this a "minor change", but just wanted to open a discussion for whether this is needed and if my approach is valid.I was thinking we add two extra commands, each one listening to changes in the
contracts
anddeploy
directories:yarn deploy:watch
, which runsyarn deploy
every time the contracts/deploy scripts changeyarn hardhat:test:watch
oryarn hardhat:test-watch
, which runsyarn hardhat:test
every time any of the contracts, deploy scripts, or tests changeRegarding the second command, I'm not sure if I'm a fan of the triple colons, but I'm not sure what the best way to deal with this would be. Again, whatever method we end up with, I'll create a PR!
Beta Was this translation helpful? Give feedback.
All reactions