2019-07-26 14:25:02 +02:00
|
|
|
[config]
|
|
|
|
workspace = false
|
|
|
|
|
|
|
|
[tasks.build]
|
|
|
|
clear = true
|
|
|
|
workspace = false
|
|
|
|
category = "Build"
|
2020-07-14 19:49:10 +02:00
|
|
|
description = "Runs the Rust compiler for both server and UI."
|
2019-07-26 14:25:02 +02:00
|
|
|
dependencies = ["build-server", "build-ui"]
|
|
|
|
|
|
|
|
[tasks.build-server]
|
2020-07-14 19:49:10 +02:00
|
|
|
workspace = false
|
2019-07-26 14:25:02 +02:00
|
|
|
category = "Build"
|
2020-07-14 19:49:10 +02:00
|
|
|
description = "Runs the Rust compiler for the server."
|
2019-07-26 14:25:02 +02:00
|
|
|
command = "cargo"
|
2020-07-16 16:12:23 +02:00
|
|
|
args = ["build", "-p", "stoptime-server"]
|
2019-07-26 14:25:02 +02:00
|
|
|
|
|
|
|
[tasks.build-ui]
|
2020-07-14 19:49:10 +02:00
|
|
|
workspace = false
|
2019-07-26 14:25:02 +02:00
|
|
|
category = "Build"
|
2020-07-14 19:49:10 +02:00
|
|
|
description = "Runs the Rust compiler via wasm-pack for the UI."
|
2020-07-14 16:51:16 +02:00
|
|
|
install-crate = "wasm-pack"
|
|
|
|
command = "wasm-pack"
|
2020-07-16 14:40:49 +02:00
|
|
|
args = ["build", "--out-name", "stoptime_ui", "--out-dir", "static/pkg", "--target", "web", "--dev", "--no-typescript"]
|
2020-07-14 16:51:16 +02:00
|
|
|
cwd = "ui"
|
2019-07-26 14:25:02 +02:00
|
|
|
|
|
|
|
[tasks.run]
|
|
|
|
clear = true
|
|
|
|
workspace = false
|
2020-07-14 19:49:10 +02:00
|
|
|
description = "Runs the server using the latest version of the UI."
|
2020-07-14 16:51:16 +02:00
|
|
|
dependencies = ["build"]
|
2019-07-26 14:25:02 +02:00
|
|
|
command = "cargo"
|
2020-07-16 16:12:23 +02:00
|
|
|
args = ["run", "-p", "stoptime-server"]
|
2019-07-26 14:25:02 +02:00
|
|
|
|
|
|
|
[tasks.test]
|
|
|
|
clear = true
|
|
|
|
workspace = false
|
2020-07-14 19:49:10 +02:00
|
|
|
category = "Test"
|
|
|
|
description = "Run all available tests for the server."
|
2019-07-26 14:25:02 +02:00
|
|
|
command = "cargo"
|
2020-07-16 16:12:23 +02:00
|
|
|
args = ["test", "-p", "stoptime-server", "--all-features"]
|