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
Uh oh!
There was an error while loading. Please reload this page.
-
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
nodemonfor 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
contractsanddeploydirectories:yarn deploy:watch, which runsyarn deployevery time the contracts/deploy scripts changeyarn hardhat:test:watchoryarn hardhat:test-watch, which runsyarn hardhat:testevery 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