summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-28 00:38:42 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-05 18:16:26 -0400
commitec51666002900faa389ff0c8f34ed32c663bd723 (patch)
treed3de7810df562128ddacac1dcb57b199acdfe2a3 /tools
parent671b36c2c8d4026eb7a34f0ac7bd5720b34f1a0d (diff)
Render the UI at /.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build-ui9
-rwxr-xr-xtools/run1
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/build-ui b/tools/build-ui
new file mode 100755
index 0000000..a7ed9a5
--- /dev/null
+++ b/tools/build-ui
@@ -0,0 +1,9 @@
+#!/bin/bash -e
+
+## tools/build-ui
+##
+## Builds the Svelte UI.
+
+cd "$(dirname "$0")/../hi-ui"
+
+npm run build
diff --git a/tools/run b/tools/run
index b063eb7..452355e 100755
--- a/tools/run
+++ b/tools/run
@@ -4,4 +4,5 @@
##
## Run the server in development mode. Shorthand for `cargo run`.
+tools/build-ui
cargo run -- "$@"