wip typst x vite

This commit is contained in:
2026-07-08 00:44:07 -04:00
parent cb8bece03b
commit 9971365ee4
12 changed files with 942 additions and 103 deletions

View File

@@ -1,24 +1,16 @@
[tools]
node = "latest"
tinymist = "0.15.0"
typst = "0.15.0"
watchexec = "latest"
[tasks.watch-bundle]
run = "typst watch main.typ site --format bundle --features bundle,html --port 3000"
[tasks.dev]
run = [
"typst watch main.typ bundle --format bundle --features bundle,html --no-serve & vite dev",
]
[tasks.watch-html]
run = "typst watch main.typ main.html --format html --features bundle,html --port 3080"
[tasks.watch-pdf]
run = "typst watch main.typ main.pdf --format pdf --features bundle,html"
[tasks.bundle]
run = "typst compile main.typ site --format bundle --features bundle,html"
[tasks.html]
run = "typst compile main.typ main.html --format html --features bundle,html"
[tasks.pdf]
run = "typst compile main.typ main.pdf --format pdf --features bundle,html"
[tasks.all]
depends = ["pdf", "html", "bundle"]
[tasks.build]
run = [
"typst compile main.typ node_modules/.typst-bundle --format bundle --features bundle,html",
"vite build",
]