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