From 98d4c6083ab9770b546f9dc095bcb8cc94d2ab81 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Tue, 14 Jul 2020 19:49:10 +0200 Subject: [PATCH] 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 --- Makefile.toml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index 614e5ac..b56db12 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -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"]