|
|
|
@ -18,13 +18,13 @@ args = ["build", "--release"]
|
|
|
|
|
|
|
|
|
|
[tasks.create_wasm]
|
|
|
|
|
description = "Build with wasm-pack"
|
|
|
|
|
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" }
|
|
|
|
|
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V", min_version = "0.8.0" }
|
|
|
|
|
command = "wasm-pack"
|
|
|
|
|
args = ["build", "--target", "web", "--out-name", "package", "--dev"]
|
|
|
|
|
|
|
|
|
|
[tasks.create_wasm_release]
|
|
|
|
|
description = "Build with wasm-pack"
|
|
|
|
|
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" }
|
|
|
|
|
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V", min_version = "0.8.0" }
|
|
|
|
|
command = "wasm-pack"
|
|
|
|
|
args = ["build", "--target", "web", "--out-name", "package"]
|
|
|
|
|
|
|
|
|
@ -79,7 +79,7 @@ dependencies = ["fmt"]
|
|
|
|
|
description = "Run tests. Ex: 'cargo make test firefox'. Test envs: [chrome, firefox, safari]"
|
|
|
|
|
clear = true
|
|
|
|
|
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", min_version = "0.8.0" }
|
|
|
|
|
command = "wasm-pack"
|
|
|
|
|
args = ["test", "--${@}"]
|
|
|
|
|
|
|
|
|
|