truffle-watch
v0.1.4
Published
run commands when files change
Downloads
2
Readme
truffle-watch
A truffle plugin for re-running commands when files change.
Why
When developing contracts, we do a suite of checks regularly whenever we make changes:
- truffle compile
- truffle test
- slither ...
truffle-watch enables you to run all of these checks in a single terminal session.
Example usage, etc.
Sample usages:
$ truffle watch
$ truffle watch --config config.json
Sample config:
{
'test': {
'cmd': 'truffle',
'args': ['test'],
'files': ['contracts/*.sol', 'test/*.js']
},
'slither': {
'cmd': 'slither',
'args': ['.'],
'files': ['contracts/*.sol']
}
}
Default config:
{
'test': {
'cmd': 'truffle',
'args': ['test'],
'files': ['contracts/', 'test/']
}
}