|
|
|
@ -20,19 +20,24 @@ args = ["build", "--release"]
|
|
|
|
|
description = "Build with wasm-pack"
|
|
|
|
|
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" }
|
|
|
|
|
command = "wasm-pack"
|
|
|
|
|
args = ["build", "--target", "no-modules", "--out-name", "package", "--dev"]
|
|
|
|
|
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" }
|
|
|
|
|
command = "wasm-pack"
|
|
|
|
|
args = ["build", "--target", "no-modules", "--out-name", "package"]
|
|
|
|
|
args = ["build", "--target", "web", "--out-name", "package"]
|
|
|
|
|
|
|
|
|
|
[tasks.build]
|
|
|
|
|
description = "Build, and create wasms"
|
|
|
|
|
workspace = false
|
|
|
|
|
dependencies = ["compile", "create_wasm"]
|
|
|
|
|
|
|
|
|
|
[tasks.build_release]
|
|
|
|
|
description = "Build, and create wasms, with the release flag"
|
|
|
|
|
workspace = false
|
|
|
|
|
dependencies = ["compile_release", "create_wasm_release"]
|
|
|
|
|
|
|
|
|
|
[tasks.watch]
|
|
|
|
|
description = "Build, create wasms, and watch/recompile files for changes"
|
|
|
|
|
workspace = false
|
|
|
|
@ -86,4 +91,4 @@ args = ["test", "--headless", "--${@}"]
|
|
|
|
|
[tasks.test_h_release]
|
|
|
|
|
extend = "test_h"
|
|
|
|
|
description = "Run headless tests in release mode. Ex: 'cargo make test_h firefox'. Test envs: [chrome, firefox, safari]"
|
|
|
|
|
args = ["test", "--headless", "--${@}", "--release"]
|
|
|
|
|
args = ["test", "--headless", "--${@}", "--release"]
|
|
|
|
|