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:
Paul van Tilburg 2020-07-14 19:49:10 +02:00
parent 2748224d48
commit 98d4c6083a
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 8 additions and 5 deletions

View File

@ -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"]