From facfa15f653575939684f4e614a1aac5941b4dfc Mon Sep 17 00:00:00 2001 From: Xander Deseyn Date: Thu, 5 Nov 2020 13:45:58 +0100 Subject: [PATCH] Better readme --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ac02e9..c9b8d23 100644 --- a/README.md +++ b/README.md @@ -68,11 +68,16 @@ 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"] } } ], } @@ -80,7 +85,7 @@ module.exports = { } ``` -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