From d2c0f79c3de1200c90db1f9c6929cc998933b908 Mon Sep 17 00:00:00 2001 From: Nanne Date: Fri, 31 May 2019 09:08:30 +0200 Subject: [PATCH] Add watch task run with `cargo make watch`, might need `cargo-watch` to be installed. --- Makefile.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.toml b/Makefile.toml index dce7b64..5e182e0 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -33,6 +33,12 @@ description = "Build, and create wasms" workspace = false dependencies = ["build", "create_wasm"] +[tasks.watch] +description = "watch code, build, and create wasms" +workspace = false +dependencies = ["build", "create_wasm"] +watch = { ignore_pattern="pkg/*" } + [tasks.all_release] description = "Build, and create wasms, with the --release flag" workspace = false @@ -76,4 +82,4 @@ clear = true workspace = false install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" } command = "wasm-pack" -args = ["test", "--firefox", "--headless", "--", "--lib", "${@}"] \ No newline at end of file +args = ["test", "--firefox", "--headless", "--", "--lib", "${@}"]