tasks.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "label": "Scientia: собрать PDF",
  6. "type": "process",
  7. "command": "typst",
  8. "args": ["compile", "--root", ".", "main.typ", "document.pdf"],
  9. "group": {
  10. "kind": "build",
  11. "isDefault": true
  12. },
  13. "problemMatcher": []
  14. },
  15. {
  16. "label": "Scientia: выбрать тип документа",
  17. "type": "process",
  18. "command": "powershell",
  19. "args": [
  20. "-NoProfile",
  21. "-ExecutionPolicy",
  22. "Bypass",
  23. "-File",
  24. ".template/development/tools/use-starter.ps1",
  25. "-Name",
  26. "${input:documentType}"
  27. ],
  28. "problemMatcher": []
  29. },
  30. {
  31. "label": "Scientia: собрать учебный пример",
  32. "type": "process",
  33. "command": "typst",
  34. "args": [
  35. "compile",
  36. "--root",
  37. ".",
  38. "${input:exampleEntry}",
  39. "example.pdf"
  40. ],
  41. "problemMatcher": []
  42. }
  43. ],
  44. "inputs": [
  45. {
  46. "id": "documentType",
  47. "type": "pickString",
  48. "description": "Выберите тип документа",
  49. "options": [
  50. "report",
  51. "letter",
  52. "commercial-offer",
  53. "contract"
  54. ],
  55. "default": "report"
  56. },
  57. {
  58. "id": "exampleEntry",
  59. "type": "pickString",
  60. "description": "Выберите компилируемый пример",
  61. "options": [
  62. "docs/examples/documents/report/main.typ",
  63. "docs/examples/documents/letter/main.typ",
  64. "docs/examples/documents/commercial-offer/main.typ",
  65. "docs/examples/documents/contract/main.typ",
  66. "docs/examples/formatting/main.typ"
  67. ],
  68. "default": "docs/examples/formatting/main.typ"
  69. }
  70. ]
  71. }