This commit is contained in:
Ian Gulliver
2024-12-21 07:46:47 -08:00
parent 7ac6cb6743
commit e351828d07

View File

@@ -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
build:
just compile
just bundle
watch:
concurrently "just compile --watch" "just bundle --watch"