| 1 | { |
| 2 | "version": "2.0.0", |
| 3 | "tasks": [ |
| 4 | { |
| 5 | "label": "tsc:watch", |
| 6 | "type": "npm", |
| 7 | "script": "tsc:watch", |
| 8 | "isBackground": true, |
| 9 | "problemMatcher": ["$tsc-watch"], |
| 10 | "group": { |
| 11 | "kind": "build", |
| 12 | "isDefault": true |
| 13 | }, |
| 14 | "presentation": { |
| 15 | "reveal": "always", |
| 16 | "panel": "new" |
| 17 | } |
| 18 | }, |
| 19 | // Compile and bundle the extension |
| 20 | { |
| 21 | "label": "vscode-extension:build", |
| 22 | "dependsOn": [ |
| 23 | // TSC type checking |
| 24 | "tsc:watch", |
| 25 | // To build the React app that is used in the extension |
| 26 | "vscode-extension:continue-ui:build", |
| 27 | // // To bundle the code the same way we do for publishing |
| 28 | "vscode-extension:esbuild", |
| 29 | // To ensure extension.js is regenerated even if |
| 30 | // vscode-extension:esbuild was already running in background |
| 31 | "vscode-extension:esbuild-notify", |
| 32 | // Start the React app that is used in the extension |
| 33 | "gui:dev" |
| 34 | ], |
| 35 | "group": { |
| 36 | "kind": "build", |
| 37 | "isDefault": true |
| 38 | } |
| 39 | }, |
| 40 | { |
| 41 | "label": "vscode-extension:esbuild-notify", |
| 42 | "dependsOn": ["vscode-extension:esbuild"], |
| 43 | "type": "npm", |
| 44 | "script": "esbuild-notify", |
| 45 | "path": "extensions/vscode" |
| 46 | }, |
| 47 | { |
| 48 | "label": "vscode-extension:esbuild", |
| 49 | "dependsOn": ["vscode-extension:continue-ui:build"], |
| 50 | "type": "npm", |
| 51 | "script": "esbuild-watch", |
| 52 | "path": "extensions/vscode", |
| 53 | "isBackground": true, |
| 54 | "problemMatcher": [ |
| 55 | { |
| 56 | "pattern": [ |
| 57 | { |
| 58 | "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", |
| 59 | "file": 1, |
| 60 | "line": 2, |
| 61 | "column": 3, |
| 62 | "severity": 4, |
| 63 | "message": 5 |
| 64 | } |
| 65 | ], |
| 66 | "background": { |
| 67 | "activeOnStart": true, |
| 68 | "beginsPattern": ">", |
| 69 | "endsPattern": "VS Code Extension esbuild complete" |
| 70 | } |
| 71 | } |
| 72 | ] |
| 73 | }, |
| 74 | { |
| 75 | "label": "vscode-extension:package", |
| 76 | "dependsOn": ["vscode-extension:esbuild"], |
| 77 | "type": "npm", |
| 78 | "script": "package", |
| 79 | "path": "extensions/vscode", |
| 80 | "problemMatcher": [ |
| 81 | { |
| 82 | "pattern": [ |
| 83 | { |
| 84 | "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", |
| 85 | "file": 1, |
| 86 | "line": 2, |
| 87 | "column": 3, |
| 88 | "severity": 4, |
| 89 | "message": 5 |
| 90 | } |
| 91 | ] |
| 92 | } |
| 93 | ] |
| 94 | }, |
| 95 | { |
| 96 | "label": "vscode-extension:continue-ui:build", |
| 97 | "type": "shell", |
| 98 | "command": "node", |
| 99 | "args": ["${workspaceFolder}/extensions/vscode/scripts/prepackage.js"], |
| 100 | "problemMatcher": ["$tsc"], |
| 101 | "presentation": { |
| 102 | "revealProblems": "onProblem", |
| 103 | "clear": true |
| 104 | }, |
| 105 | "options": { |
| 106 | "env": { |
| 107 | "SKIP_INSTALLS": "true" |
| 108 | }, |
| 109 | "cwd": "${workspaceFolder}/extensions/vscode" |
| 110 | } |
| 111 | }, |
| 112 | // Install or update all dependencies for all projects in the monrepo |
| 113 | { |
| 114 | "label": "install-all-dependencies", |
| 115 | "type": "shell", |
| 116 | "windows": { "command": "./scripts/install-dependencies.ps1" }, |
| 117 | "command": "./scripts/install-dependencies.sh", |
| 118 | "problemMatcher": [] // Empty so users are not prompted to select progress reporting |
| 119 | }, |
| 120 | // |
| 121 | // Start the React App for debugging with Vite |
| 122 | { |
| 123 | "label": "gui:dev", |
| 124 | "type": "shell", |
| 125 | "command": "npm", |
| 126 | "options": { |
| 127 | "cwd": "${workspaceFolder}/gui" |
| 128 | }, |
| 129 | "args": ["run", "dev"], |
| 130 | "isBackground": true, |
| 131 | "problemMatcher": [ |
| 132 | { |
| 133 | "pattern": [ |
| 134 | { |
| 135 | "regexp": ".", |
| 136 | "file": 1, |
| 137 | "location": 2, |
| 138 | "message": 3 |
| 139 | } |
| 140 | ], |
| 141 | "background": { |
| 142 | "activeOnStart": true, |
| 143 | "beginsPattern": ".", |
| 144 | "endsPattern": "." |
| 145 | } |
| 146 | } |
| 147 | ] |
| 148 | }, |
| 149 | // |
| 150 | // esbuild for the core binary |
| 151 | { |
| 152 | "label": "binary:esbuild", |
| 153 | "type": "shell", |
| 154 | "command": "npm", |
| 155 | "args": ["run", "esbuild"], |
| 156 | "problemMatcher": [], |
| 157 | "options": { |
| 158 | "cwd": "binary" |
| 159 | } |
| 160 | }, |
| 161 | { |
| 162 | "label": "docs:start", |
| 163 | "type": "shell", |
| 164 | "command": "npm", |
| 165 | "args": ["run", "start", "--", "--no-open"], |
| 166 | "problemMatcher": [], |
| 167 | "options": { |
| 168 | "cwd": "docs" |
| 169 | } |
| 170 | }, |
| 171 | { |
| 172 | "label": "clean", |
| 173 | "type": "shell", |
| 174 | "command": "node", |
| 175 | "args": ["${workspaceFolder}/scripts/uninstall.js"], |
| 176 | "problemMatcher": [] |
| 177 | }, |
| 178 | { |
| 179 | "label": "refresh-dependencies:core", |
| 180 | "type": "shell", |
| 181 | "command": "npm", |
| 182 | "args": ["install"], |
| 183 | "problemMatcher": [], |
| 184 | "options": { |
| 185 | "cwd": "${workspaceFolder}/core" |
| 186 | }, |
| 187 | "presentation": { |
| 188 | "close": true |
| 189 | } |
| 190 | }, |
| 191 | { |
| 192 | "label": "refresh-dependencies:vscode", |
| 193 | "type": "shell", |
| 194 | "command": "npm", |
| 195 | "args": ["install"], |
| 196 | "problemMatcher": [], |
| 197 | "options": { |
| 198 | "cwd": "${workspaceFolder}/extensions/vscode" |
| 199 | }, |
| 200 | "presentation": { |
| 201 | "close": true |
| 202 | } |
| 203 | }, |
| 204 | { |
| 205 | "label": "refresh-dependencies:gui", |
| 206 | "type": "shell", |
| 207 | "command": "npm", |
| 208 | "args": ["install"], |
| 209 | "problemMatcher": [], |
| 210 | "options": { |
| 211 | "cwd": "${workspaceFolder}/gui" |
| 212 | }, |
| 213 | "presentation": { |
| 214 | "close": true |
| 215 | } |
| 216 | }, |
| 217 | { |
| 218 | "label": "refresh-dependencies:all", |
| 219 | "dependsOn": [ |
| 220 | "refresh-dependencies:core", |
| 221 | "refresh-dependencies:gui", |
| 222 | "refresh-dependencies:vscode" |
| 223 | ], |
| 224 | "type": "shell", |
| 225 | "problemMatcher": [] |
| 226 | } |
| 227 | ] |
| 228 | } |