[project] id = "fixture-target-configs" name = "target-configs" [info] title = "测试课:导出目标的结构化 build 配置" # Full v2 config: explicit single-file artifact + an ordered typst-compile step. [targets.student] artifact = { type = "single-file", filepath = "build/student.pdf" } [[targets.student.steps]] type = "typst-compile" template = "exports/student.typ" # file-tree artifact + multiple steps (typst-compile then a shell step), # exercising both step types and order preservation. [targets.archive] artifact = { type = "file-tree", root = "build/archive", outputs = "**/*.{html,js,json}" } [[targets.archive.steps]] type = "typst-compile" template = "exports/archive.typ" [[targets.archive.steps]] type = "shell" run = "npm run build" # Empty body → all defaults (single-file build/teacher.pdf, one typst-compile # step exports/teacher.typ). [targets.teacher]