tasks.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. // See https://go.microsoft.com/fwlink/?LinkId=733558
  2. // for the documentation about the tasks.json format
  3. {
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "label": "watch",
  8. "dependsOn": ["watch:pnpm", "watch:webview", "watch:bundle", "watch:tsc"],
  9. "presentation": {
  10. "reveal": "never"
  11. },
  12. "group": {
  13. "kind": "build",
  14. "isDefault": true
  15. },
  16. "runOptions": {
  17. "runOn": "folderOpen"
  18. }
  19. },
  20. {
  21. "label": "watch:pnpm",
  22. "type": "shell",
  23. "command": "npx",
  24. "args": [
  25. "nodemon",
  26. "--watch",
  27. "package.json",
  28. "--watch",
  29. "src/package.json",
  30. "--watch",
  31. "webview-ui/package.json",
  32. "--watch",
  33. "pnpm-workspace.yaml",
  34. "--exec",
  35. "pnpm install"
  36. ],
  37. "group": "none",
  38. "isBackground": true,
  39. "presentation": {
  40. "group": "none",
  41. "reveal": "always"
  42. },
  43. "problemMatcher": {
  44. "pattern": { "regexp": "^$" },
  45. "background": {
  46. "activeOnStart": true,
  47. "beginsPattern": "\\[nodemon\\] starting",
  48. "endsPattern": "\\[nodemon\\] clean exit - waiting for changes before restart"
  49. }
  50. }
  51. },
  52. {
  53. "label": "watch:webview",
  54. "dependsOn": ["watch:pnpm"],
  55. "type": "shell",
  56. "command": "pnpm --filter @roo-code/vscode-webview dev",
  57. "group": "build",
  58. "problemMatcher": {
  59. "owner": "vite",
  60. "pattern": { "regexp": "^$" },
  61. "background": {
  62. "activeOnStart": true,
  63. "beginsPattern": ".*VITE.*",
  64. "endsPattern": ".*Local:.*"
  65. }
  66. },
  67. "isBackground": true,
  68. "presentation": {
  69. "group": "watch",
  70. "reveal": "always"
  71. }
  72. },
  73. {
  74. "label": "watch:bundle",
  75. "dependsOn": ["watch:pnpm"],
  76. "type": "shell",
  77. "command": "npx turbo watch:bundle",
  78. "group": "build",
  79. "problemMatcher": {
  80. "owner": "esbuild",
  81. "pattern": {
  82. "regexp": "^$"
  83. },
  84. "background": {
  85. "activeOnStart": true,
  86. "beginsPattern": "esbuild-problem-matcher#onStart",
  87. "endsPattern": "esbuild-problem-matcher#onEnd"
  88. }
  89. },
  90. "isBackground": true,
  91. "presentation": {
  92. "group": "watch",
  93. "reveal": "always"
  94. }
  95. },
  96. {
  97. "label": "watch:tsc",
  98. "dependsOn": ["watch:pnpm"],
  99. "type": "shell",
  100. "command": "npx turbo watch:tsc",
  101. "group": "none",
  102. "problemMatcher": "$tsc-watch",
  103. "isBackground": true,
  104. "presentation": {
  105. "group": "none",
  106. "reveal": "always"
  107. }
  108. },
  109. {
  110. "label": "storybook",
  111. "type": "shell",
  112. "command": "kill -9 $(lsof -t -i tcp:6006) 2>/dev/null || true && npx turbo storybook",
  113. "group": "build",
  114. "problemMatcher": {
  115. "owner": "storybook",
  116. "pattern": {
  117. "regexp": "^$"
  118. },
  119. "background": {
  120. "activeOnStart": true,
  121. "beginsPattern": ".*Storybook.*",
  122. "endsPattern": ".*Local:.*http://localhost:6006.*"
  123. }
  124. },
  125. "isBackground": true,
  126. "presentation": {
  127. "reveal": "always",
  128. "panel": "new"
  129. }
  130. },
  131. {
  132. "label": "install-dev-extension",
  133. "type": "shell",
  134. "command": "pnpm i && npm run build && code --force --install-extension \"$(ls -1v bin/kilo-code-*.vsix | tail -n1)\"",
  135. "group": "build",
  136. "presentation": {
  137. "echo": true,
  138. "reveal": "always",
  139. "focus": false,
  140. "panel": "shared",
  141. "showReuseMessage": true,
  142. "clear": false
  143. },
  144. "problemMatcher": []
  145. },
  146. {
  147. "type": "shell",
  148. "command": "pnpm docs:start",
  149. "problemMatcher": [],
  150. "label": "docs: start",
  151. "detail": "node -r dotenv/config node_modules/.bin/docusaurus start --host 0.0.0.0"
  152. },
  153. {
  154. "type": "shell",
  155. "command": "pnpm docs:build",
  156. "problemMatcher": [],
  157. "label": "docs: build",
  158. "detail": "Build the Docusaurus site for production"
  159. }
  160. ]
  161. }