You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.5 KiB

11 months ago
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "type": "shell",
  8. "options": {
  9. "cwd": "${workspaceFolder}/collector",
  10. "statusbar": {
  11. "color": "#ffea00",
  12. "detail": "Runs the collector",
  13. "label": "Collector: $(play) run",
  14. "running": {
  15. "color": "#ffea00",
  16. "label": "Collector: $(gear~spin) running"
  17. }
  18. }
  19. },
  20. "command": "cd ${workspaceFolder}/collector/ && yarn dev",
  21. "runOptions": {
  22. "instanceLimit": 1,
  23. "reevaluateOnRerun": true
  24. },
  25. "presentation": {
  26. "echo": true,
  27. "reveal": "always",
  28. "focus": false,
  29. "panel": "shared",
  30. "showReuseMessage": true,
  31. "clear": false
  32. },
  33. "label": "Collector: run"
  34. },
  35. {
  36. "type": "shell",
  37. "options": {
  38. "cwd": "${workspaceFolder}/server",
  39. "statusbar": {
  40. "color": "#ffea00",
  41. "detail": "Runs the server",
  42. "label": "Server: $(play) run",
  43. "running": {
  44. "color": "#ffea00",
  45. "label": "Server: $(gear~spin) running"
  46. }
  47. }
  48. },
  49. "command": "if [ \"${CODESPACES}\" = \"true\" ]; then while ! gh codespace ports -c $CODESPACE_NAME | grep 3001; do sleep 1; done; gh codespace ports visibility 3001:public -c $CODESPACE_NAME; fi & cd ${workspaceFolder}/server/ && yarn dev",
  50. "runOptions": {
  51. "instanceLimit": 1,
  52. "reevaluateOnRerun": true
  53. },
  54. "presentation": {
  55. "echo": true,
  56. "reveal": "always",
  57. "focus": false,
  58. "panel": "shared",
  59. "showReuseMessage": true,
  60. "clear": false
  61. },
  62. "label": "Server: run"
  63. },
  64. {
  65. "type": "shell",
  66. "options": {
  67. "cwd": "${workspaceFolder}/frontend",
  68. "statusbar": {
  69. "color": "#ffea00",
  70. "detail": "Runs the frontend",
  71. "label": "Frontend: $(play) run",
  72. "running": {
  73. "color": "#ffea00",
  74. "label": "Frontend: $(gear~spin) running"
  75. }
  76. }
  77. },
  78. "command": "cd ${workspaceFolder}/frontend/ && yarn dev",
  79. "runOptions": {
  80. "instanceLimit": 1,
  81. "reevaluateOnRerun": true
  82. },
  83. "presentation": {
  84. "echo": true,
  85. "reveal": "always",
  86. "focus": false,
  87. "panel": "shared",
  88. "showReuseMessage": true,
  89. "clear": false
  90. },
  91. "label": "Frontend: run"
  92. }
  93. ]
  94. }