From d9b095c3f3455e9aa1785d3a27892ae0268898b8 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Wed, 2 Jul 2025 15:26:19 -0400 Subject: [PATCH] keep justing --- justfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/justfile b/justfile index f016cb7..7c71da6 100644 --- a/justfile +++ b/justfile @@ -16,8 +16,10 @@ clean-wasm-pack: rm pkg/rudus.js.backup from-branch := `git branch --show-current` +git-good := if `git status -s` != "" { error("please commit changes first") } else { "ok" } release: + if `git status -s` == "" { error("please commit any changes first") } just wasm git commit -am "release build" git checkout release @@ -25,6 +27,9 @@ release: git push git checkout {{from-branch}} +ensure-gits-good: + echo {{git-good}} + serve: open http://localhost:8080/index.html && miniserve pkg