Add web frontend in Yew

This commit is contained in:
2022-03-21 17:10:51 +01:00
parent 5958a3ed29
commit c746325495
12 changed files with 374 additions and 30 deletions

View File

@@ -21,7 +21,7 @@ condition = {}
workspace = false
[tasks.run-api]
install_crate = "bunyan"
install_crate = { crate_name = "bunyan", binary = "bunyan" }
env = { "CONFIG_PATH" = "api/config", "TASKRC" = "$PWD/api/taskrc" }
command = "bash"
args = ["-c", "cargo run -p contextswitch-api | bunyan"]
@@ -29,7 +29,7 @@ workspace = false
watch = { watch = ["./api/"], no_git_ignore = true }
[tasks.run-web]
install_crate = "trunk"
install_crate = { crate_name = "trunk", binary = "trunk" }
command = "bash"
args = ["-c", "cd web; trunk serve"]
workspace = false