Skip to content

Commit

Permalink
Better readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderdeseyn committed Nov 5, 2020
1 parent 01f77f1 commit facfa15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,24 @@ module.exports = {

and subsequently running `npx hardhat watch compilation`

A bit more involved and showcasing the use of parameters for tasks:
A bit more involved and showcasing the use of parameters for tasks and defining multiple watcher tasks:

```js
module.exports = {
watcher: {
compilation: {
tasks: ["compile"],
files: ["./contracts"],
verbose: true,
},
ci: {
tasks: ["clean", { command: "compile", params: { quiet: true } }, { command: "test", params: { noCompile: true, testFiles: ["testfile.ts"] } } ],
}
},
}
```

Run with `npx hardhat watch ci` to clean, compile and test on every file change.
Run `npx hardhat watch ci` to clean, compile and test on every file change, or run `npx hardhat watch compilation` to compile.

### Positional arguments

Expand Down

0 comments on commit facfa15

Please sign in to comment.