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