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