24 lines
632 B
TOML
24 lines
632 B
TOML
[tools]
|
|
node = "latest"
|
|
"npm:vite" = "8.1.3"
|
|
tinymist = "0.15.0"
|
|
typst = "0.15.0"
|
|
|
|
[tasks.build]
|
|
run = [
|
|
"rm .typ-bundle/*",
|
|
"typst compile main.typ .typ-bundle --format bundle --features bundle,html",
|
|
"vite build",
|
|
]
|
|
sources = ["!dist", "!node_modules", "!.idea", "**/*.typ", "src/**/*"]
|
|
|
|
[tasks.dev-vite]
|
|
run = "vite dev"
|
|
sources = ["!dist", "!node_modules", "!.idea", "**/*.typ", "src/**/*"]
|
|
|
|
[tasks.dev-typ]
|
|
run = "typst watch main.typ .typ-bundle --format bundle --features bundle,html --no-serve"
|
|
sources = ["!dist", "!node_modules", "!.idea", "**/*.typ", "src/**/*"]
|
|
|
|
[tasks.dev]
|
|
depends = ["dev-vite", "dev-typ"] |