summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-03 21:23:03 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-05 18:16:26 -0400
commit40cc35bcc9b881a61ca62c67e107bb17c2748f57 (patch)
tree7876efc33ee52258420481a9490ade437f44df7c
parentec51666002900faa389ff0c8f34ed32c663bd723 (diff)
Pre-commit needs the UI available, so make it available.
-rwxr-xr-xgit-hooks/pre-commit2
-rwxr-xr-xtools/build-ui1
2 files changed, 3 insertions, 0 deletions
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit
index cd2f9ee..cafdb8d 100755
--- a/git-hooks/pre-commit
+++ b/git-hooks/pre-commit
@@ -4,6 +4,8 @@
# run. It gets old fast. That's why this uses `cargo check` and not `cargo
# test`, for example.
+# Make sure the UI is up to date.
+tools/build-ui
# Make sure Cargo.lock is up to date with Cargo.toml.
cargo update --locked --workspace
# Make sure there are no screamers in the code.
diff --git a/tools/build-ui b/tools/build-ui
index a7ed9a5..48b83e6 100755
--- a/tools/build-ui
+++ b/tools/build-ui
@@ -6,4 +6,5 @@
cd "$(dirname "$0")/../hi-ui"
+npm install
npm run build