Improve Makefile.toml for cargo-make
* Ensure that the `build-ui`/`build-server` tasks are callable * Add some missing task categories * Tweak the task descriptions
This commit is contained in:
parent
2748224d48
commit
98d4c6083a
1 changed files with 8 additions and 5 deletions
|
@ -5,18 +5,20 @@ workspace = false
|
|||
clear = true
|
||||
workspace = false
|
||||
category = "Build"
|
||||
description = "Runs the Rust compiler for both server and UI"
|
||||
description = "Runs the Rust compiler for both server and UI."
|
||||
dependencies = ["build-server", "build-ui"]
|
||||
|
||||
[tasks.build-server]
|
||||
workspace = false
|
||||
category = "Build"
|
||||
description = "Runs the Rust compiler for the server"
|
||||
description = "Runs the Rust compiler for the server."
|
||||
command = "cargo"
|
||||
args = ["build", "-p", "stoptime_server"]
|
||||
|
||||
[tasks.build-ui]
|
||||
workspace = false
|
||||
category = "Build"
|
||||
description = "Runs the Rust compiler via wasm-pack for the UI"
|
||||
description = "Runs the Rust compiler via wasm-pack for the UI."
|
||||
install-crate = "wasm-pack"
|
||||
command = "wasm-pack"
|
||||
args = ["build", "--out-name", "stoptime_ui", "--out-dir", "static", "--target", "web"]
|
||||
|
@ -25,7 +27,7 @@ cwd = "ui"
|
|||
[tasks.run]
|
||||
clear = true
|
||||
workspace = false
|
||||
description = "Runs the server"
|
||||
description = "Runs the server using the latest version of the UI."
|
||||
dependencies = ["build"]
|
||||
command = "cargo"
|
||||
args = ["run", "-p", "stoptime_server"]
|
||||
|
@ -33,6 +35,7 @@ args = ["run", "-p", "stoptime_server"]
|
|||
[tasks.test]
|
||||
clear = true
|
||||
workspace = false
|
||||
description = "Run all available tests for the server"
|
||||
category = "Test"
|
||||
description = "Run all available tests for the server."
|
||||
command = "cargo"
|
||||
args = ["test", "-p", "stoptime_server", "--all-features"]
|
||||
|
|
Loading…
Reference in a new issue