From d7956f6f4a51b501e250e53b4b538afecff7585d Mon Sep 17 00:00:00 2001 From: DavidOConnor Date: Fri, 31 May 2019 06:00:28 -0400 Subject: [PATCH] Documented cargo make watch --- Makefile.toml | 2 +- README.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.toml b/Makefile.toml index 5e182e0..6d47049 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -34,7 +34,7 @@ workspace = false dependencies = ["build", "create_wasm"] [tasks.watch] -description = "watch code, build, and create wasms" +description = "Build, and create wasms, then watch files for changes" workspace = false dependencies = ["build", "create_wasm"] watch = { ignore_pattern="pkg/*" } diff --git a/README.md b/README.md index dccbfff..a071295 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,6 @@ Run `cargo make all` in a terminal to build the app, and `cargo make serve` to start a dev server on `127.0.0.0:8000`. +If you'd like to make the compiler automatically check for changes, recompiling as +needed, install Cargo-watch with `cargo install cargo-watch`, then run `cargo make watch` instead of `cargo make all`. +