Add watch task

run with `cargo make watch`, might need `cargo-watch` to be installed.
master
Nanne 6 years ago committed by David O'Connor
parent 1a8d2a71a1
commit d2c0f79c3d

@ -33,6 +33,12 @@ description = "Build, and create wasms"
workspace = false workspace = false
dependencies = ["build", "create_wasm"] 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] [tasks.all_release]
description = "Build, and create wasms, with the --release flag" description = "Build, and create wasms, with the --release flag"
workspace = false workspace = false
@ -76,4 +82,4 @@ clear = true
workspace = false workspace = false
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" } install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" }
command = "wasm-pack" command = "wasm-pack"
args = ["test", "--firefox", "--headless", "--", "--lib", "${@}"] args = ["test", "--firefox", "--headless", "--", "--lib", "${@}"]

Loading…
Cancel
Save