add build script

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-06-17 10:04:52 +02:00
parent ba51d75528
commit 64e270a868
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 9 additions and 178 deletions

8
test_template/build.sh Normal file
View file

@ -0,0 +1,8 @@
MAIN="$(dirname $(realpath "${0}"))/main.typ"
if [ "${1}" = "watch" ]; then
typst watch --features bundle,html --format bundle "${MAIN}"
else
typst compile --features bundle,html --format bundle "${MAIN}"
fi