justinging
This commit is contained in:
parent
d9b095c3f3
commit
14a41dc1bd
14
justfile
14
justfile
|
@ -15,20 +15,20 @@ clean-wasm-pack:
|
|||
cat pkg/rudus.js.backup | tail -n+2>> pkg/rudus.js
|
||||
rm pkg/rudus.js.backup
|
||||
|
||||
from-branch := `git branch --show-current`
|
||||
git-good := if `git status -s` != "" { error("please commit changes first") } else { "ok" }
|
||||
from_branch := `git branch --show-current`
|
||||
git_status := `git status -s`
|
||||
|
||||
release:
|
||||
if `git status -s` == "" { error("please commit any changes first") }
|
||||
echo {{ if git_status == "" {"git status ok"} else {error("please commit changes first")} }}
|
||||
just wasm
|
||||
git commit -am "release build"
|
||||
git checkout release
|
||||
git merge {{from-branch}}
|
||||
git merge {{from_branch}}
|
||||
git push
|
||||
git checkout {{from-branch}}
|
||||
git checkout {{from_branch}}
|
||||
|
||||
ensure-gits-good:
|
||||
echo {{git-good}}
|
||||
hi:
|
||||
echo {{ if git_status == "" { "git ok" } else { error("please commit changes first") } }}
|
||||
|
||||
serve:
|
||||
open http://localhost:8080/index.html && miniserve pkg
|
||||
|
|
Loading…
Reference in New Issue
Block a user