tasks.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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": ["nodemon", "--watch", "pnpm-lock.yaml", "--exec", "pnpm install"],
  25. "group": "build",
  26. "isBackground": true,
  27. "presentation": {
  28. "group": "watch",
  29. "reveal": "always"
  30. },
  31. "problemMatcher": {
  32. "pattern": { "regexp": "^$" },
  33. "background": {
  34. "activeOnStart": true,
  35. "beginsPattern": "\\[nodemon\\] starting",
  36. "endsPattern": "\\[nodemon\\] clean exit - waiting for changes before restart"
  37. }
  38. }
  39. },
  40. {
  41. "label": "watch:webview",
  42. "dependsOn": ["watch:pnpm"],
  43. "type": "shell",
  44. "command": "pnpm --filter @roo-code/vscode-webview dev",
  45. "group": "build",
  46. "problemMatcher": {
  47. "owner": "vite",
  48. "pattern": { "regexp": "^$" },
  49. "background": {
  50. "activeOnStart": true,
  51. "beginsPattern": ".*VITE.*",
  52. "endsPattern": ".*Local:.*"
  53. }
  54. },
  55. "isBackground": true,
  56. "presentation": {
  57. "group": "watch",
  58. "reveal": "always"
  59. }
  60. },
  61. {
  62. "label": "watch:bundle",
  63. "dependsOn": ["watch:pnpm"],
  64. "type": "shell",
  65. "command": "npx turbo watch:bundle",
  66. "group": "build",
  67. "problemMatcher": {
  68. "owner": "esbuild",
  69. "pattern": {
  70. "regexp": "^$"
  71. },
  72. "background": {
  73. "activeOnStart": true,
  74. "beginsPattern": "esbuild-problem-matcher#onStart",
  75. "endsPattern": "esbuild-problem-matcher#onEnd"
  76. }
  77. },
  78. "isBackground": true,
  79. "presentation": {
  80. "group": "watch",
  81. "reveal": "always"
  82. }
  83. },
  84. {
  85. "label": "watch:tsc",
  86. "dependsOn": ["watch:pnpm"],
  87. "type": "shell",
  88. "command": "npx turbo watch:tsc",
  89. "group": "build",
  90. "problemMatcher": "$tsc-watch",
  91. "isBackground": true,
  92. "presentation": {
  93. "group": "watch",
  94. "reveal": "always"
  95. }
  96. },
  97. {
  98. "label": "storybook",
  99. "type": "shell",
  100. "command": "kill -9 $(lsof -t -i tcp:6006) 2>/dev/null || true && npx turbo storybook",
  101. "group": "build",
  102. "problemMatcher": {
  103. "owner": "storybook",
  104. "pattern": {
  105. "regexp": "^$"
  106. },
  107. "background": {
  108. "activeOnStart": true,
  109. "beginsPattern": ".*Storybook.*",
  110. "endsPattern": ".*Local:.*http://localhost:6006.*"
  111. }
  112. },
  113. "isBackground": true,
  114. "presentation": {
  115. "reveal": "always",
  116. "panel": "new"
  117. }
  118. }
  119. ]
  120. }