|
|
|
@ -16,22 +16,6 @@ workspace = false
|
|
|
|
|
command = "cargo"
|
|
|
|
|
args = ["build", "--release"]
|
|
|
|
|
|
|
|
|
|
[tasks.build]
|
|
|
|
|
description = "Build, and create wasms"
|
|
|
|
|
workspace = false
|
|
|
|
|
dependencies = ["compile", "create_wasm"]
|
|
|
|
|
|
|
|
|
|
[tasks.watch]
|
|
|
|
|
description = "Build, create wasms, and watch/recompile files for changes"
|
|
|
|
|
workspace = false
|
|
|
|
|
dependencies = ["build", "create_wasm"]
|
|
|
|
|
watch = { ignore_pattern="pkg/*" }
|
|
|
|
|
|
|
|
|
|
[tasks.compile_release]
|
|
|
|
|
description = "Build, and create wasms, with the --release flag"
|
|
|
|
|
workspace = false
|
|
|
|
|
dependencies = ["build_release", "create_wasm_release"]
|
|
|
|
|
|
|
|
|
|
[tasks.create_wasm]
|
|
|
|
|
description = "Build with wasm-pack"
|
|
|
|
|
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V" }
|
|
|
|
@ -44,6 +28,17 @@ install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = "-V
|
|
|
|
|
command = "wasm-pack"
|
|
|
|
|
args = ["build", "--target", "no-modules", "--out-name", "package"]
|
|
|
|
|
|
|
|
|
|
[tasks.build]
|
|
|
|
|
description = "Build, and create wasms"
|
|
|
|
|
workspace = false
|
|
|
|
|
dependencies = ["compile", "create_wasm"]
|
|
|
|
|
|
|
|
|
|
[tasks.watch]
|
|
|
|
|
description = "Build, create wasms, and watch/recompile files for changes"
|
|
|
|
|
workspace = false
|
|
|
|
|
dependencies = ["build", "create_wasm"]
|
|
|
|
|
watch = { ignore_pattern="pkg/*" }
|
|
|
|
|
|
|
|
|
|
[tasks.serve]
|
|
|
|
|
description = "Start server"
|
|
|
|
|
install_crate = { crate_name = "microserver", binary = "microserver", test_arg = "-h" }
|
|
|
|
|