add build script
This commit is contained in:
parent
ba51d75528
commit
64e270a868
3 changed files with 9 additions and 178 deletions
8
test_template/build.sh
Normal file
8
test_template/build.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue