tasks.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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", "watch:cli"],
  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": "build",
  38. "isBackground": true,
  39. "presentation": {
  40. "group": "watch:core",
  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:core",
  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:core",
  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": "build",
  102. "problemMatcher": "$tsc-watch",
  103. "isBackground": true,
  104. "presentation": {
  105. "group": "watch:core",
  106. "reveal": "always"
  107. }
  108. },
  109. {
  110. "label": "watch:cli:setup",
  111. "dependsOn": ["watch:pnpm"],
  112. "type": "shell",
  113. "command": "node -e \"require('fs').existsSync('cli/dist/node_modules') || process.exit(1)\" || pnpm --filter @kilocode/cli dev:setup",
  114. "group": "build",
  115. "presentation": {
  116. "group": "watch:cli",
  117. "reveal": "silent"
  118. },
  119. "problemMatcher": []
  120. },
  121. {
  122. "label": "watch:cli:deps",
  123. "dependsOn": ["watch:cli:setup"],
  124. "type": "shell",
  125. "command": "npx nodemon --watch cli/package.dist.json --exec \"pnpm --filter @kilocode/cli deps:install\"",
  126. "group": "build",
  127. "isBackground": true,
  128. "presentation": {
  129. "group": "watch:cli",
  130. "reveal": "silent"
  131. },
  132. "problemMatcher": {
  133. "pattern": { "regexp": "^$" },
  134. "background": {
  135. "activeOnStart": true,
  136. "beginsPattern": "\\[nodemon\\] starting",
  137. "endsPattern": "\\[nodemon\\] clean exit - waiting for changes before restart"
  138. }
  139. }
  140. },
  141. {
  142. "label": "watch:cli",
  143. "dependsOn": ["watch:cli:setup", "watch:cli:deps"],
  144. "type": "shell",
  145. "command": "pnpm --filter @kilocode/cli dev",
  146. "group": "build",
  147. "problemMatcher": {
  148. "owner": "esbuild",
  149. "pattern": {
  150. "regexp": "^$"
  151. },
  152. "background": {
  153. "activeOnStart": true,
  154. "beginsPattern": "esbuild-problem-matcher#onStart",
  155. "endsPattern": "esbuild-problem-matcher#onEnd"
  156. }
  157. },
  158. "isBackground": true,
  159. "presentation": {
  160. "group": "watch:cli",
  161. "reveal": "always"
  162. }
  163. },
  164. {
  165. "label": "storybook",
  166. "type": "shell",
  167. "command": "kill -9 $(lsof -t -i tcp:6006) 2>/dev/null || true && npx turbo storybook",
  168. "group": "build",
  169. "problemMatcher": {
  170. "owner": "storybook",
  171. "pattern": {
  172. "regexp": "^$"
  173. },
  174. "background": {
  175. "activeOnStart": true,
  176. "beginsPattern": ".*Storybook.*",
  177. "endsPattern": ".*Local:.*http://localhost:6006.*"
  178. }
  179. },
  180. "isBackground": true,
  181. "presentation": {
  182. "reveal": "always",
  183. "panel": "new"
  184. }
  185. },
  186. {
  187. "label": "install-dev-extension",
  188. "type": "shell",
  189. "command": "pnpm i && pnpm run build && code --force --install-extension \"$(ls -1v bin/kilo-code-*.vsix | tail -n1)\"",
  190. "group": "build",
  191. "presentation": {
  192. "echo": true,
  193. "reveal": "always",
  194. "focus": false,
  195. "panel": "shared",
  196. "showReuseMessage": true,
  197. "clear": false
  198. },
  199. "problemMatcher": []
  200. },
  201. {
  202. "type": "shell",
  203. "command": "pnpm docs:start",
  204. "problemMatcher": [],
  205. "label": "docs: start",
  206. "detail": "node -r dotenv/config node_modules/.bin/docusaurus start --host 0.0.0.0"
  207. },
  208. {
  209. "type": "shell",
  210. "command": "pnpm docs:build",
  211. "problemMatcher": [],
  212. "label": "docs: build",
  213. "detail": "Build the Docusaurus site for production"
  214. }
  215. ]
  216. }