From e351828d079dd9430a1c1a866d6ce93fc782d8fb Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 21 Dec 2024 07:46:47 -0800 Subject: [PATCH] watch --- justfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/justfile b/justfile index 1ef63ca..c696982 100644 --- a/justfile +++ b/justfile @@ -1,9 +1,14 @@ default: build -compile: - tsc +compile flags='': + tsc {{flags}} -bundle: - esbuild js/main.js --bundle --format=esm --platform=browser --target=esnext --sourcemap=inline --outfile=static/app.mjs +bundle flags='': + esbuild js/main.js --bundle --format=esm --platform=browser --target=esnext --sourcemap=inline --outfile=static/app.mjs {{flags}} -build: compile bundle \ No newline at end of file +build: + just compile + just bundle + +watch: + concurrently "just compile --watch" "just bundle --watch" \ No newline at end of file