From f6ad3b69667fd7cb978467803476397829a727f0 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Wed, 2 Jul 2025 15:43:44 -0400 Subject: [PATCH] clean up justfile --- justfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index e6abdea..d56c057 100644 --- a/justfile +++ b/justfile @@ -1,10 +1,13 @@ -wasm: && clean-wasm-pack +# build optimized wasm +build: && clean-wasm-pack # build with wasm-pack wasm-pack build --target web -wasm-dev: && clean-wasm-pack +# build dev wasm +dev: && clean-wasm-pack wasm-pack build --dev --target web +# clean up after wasm-pack clean-wasm-pack: # delete cruft from wasm-pack rm pkg/.gitignore pkg/package.json pkg/README.md @@ -18,6 +21,7 @@ clean-wasm-pack: from_branch := `git branch --show-current` git_status := `git status -s` +# publish this branch into release release: echo {{ if git_status == "" {"git status ok"} else {error("please commit changes first")} }} just wasm @@ -27,8 +31,9 @@ release: git push git checkout {{from_branch}} +# serve the pkg directory serve: - open http://localhost:8080/index.html && miniserve pkg + live-server pkg default: @just --list