|
15 | 15 | } |
16 | 16 | }, |
17 | 17 | { |
18 | | - "label": "buildSln", |
| 18 | + "label": "dotnet: build sln (debug)", |
19 | 19 | "command": "dotnet", |
20 | 20 | "args": [ |
21 | 21 | "build", |
|
24 | 24 | "/consoleloggerparameters:NoSummary" |
25 | 25 | ], |
26 | 26 | "type": "process", |
27 | | - "dependsOn": "cleanSln", |
| 27 | + "dependsOn": "dotnet: clean sln", |
28 | 28 | "group": { |
29 | 29 | "kind": "build", |
30 | 30 | "isDefault": true |
|
39 | 39 | } |
40 | 40 | }, |
41 | 41 | { |
42 | | - "label": "cleanSln", |
| 42 | + "label": "dotnet: clean sln", |
43 | 43 | "command": "dotnet", |
44 | 44 | "args": [ |
45 | 45 | "clean", |
|
58 | 58 | } |
59 | 59 | }, |
60 | 60 | { |
61 | | - "label": "startNgrok", |
| 61 | + "label": "dotnet: publish API", |
| 62 | + "command": "dotnet", |
| 63 | + "args": [ |
| 64 | + "publish", |
| 65 | + "${workspaceFolder}/src/TeamCloud.API/TeamCloud.API.csproj", |
| 66 | + "-o", |
| 67 | + "${workspaceFolder}/src/TeamCloud.API/publish", |
| 68 | + "-c", |
| 69 | + "Release", |
| 70 | + "-p:VersionPrefix=${input:dotnetReleaseVersion}", |
| 71 | + "-p:AssemblyVersion=${input:dotnetReleaseVersion}", |
| 72 | + "-p:FileVersion=${input:dotnetReleaseVersion}", |
| 73 | + "-p:IncludeSymbols=true", |
| 74 | + "--no-build" |
| 75 | + ], |
| 76 | + "type": "process", |
| 77 | + "problemMatcher": "$msCompile", |
| 78 | + "options": { |
| 79 | + "cwd": "${workspaceFolder}" |
| 80 | + }, |
| 81 | + "presentation": { |
| 82 | + "showReuseMessage": false |
| 83 | + } |
| 84 | + }, |
| 85 | + { |
| 86 | + "label": "dotnet: publish Orchestrator", |
| 87 | + "command": "dotnet", |
| 88 | + "args": [ |
| 89 | + "publish", |
| 90 | + "${workspaceFolder}/src/TeamCloud.Orchestrator/TeamCloud.Orchestrator.csproj", |
| 91 | + "-o", |
| 92 | + "${workspaceFolder}/src/TeamCloud.Orchestrator/publish", |
| 93 | + "-c", |
| 94 | + "Release", |
| 95 | + "-p:VersionPrefix=${input:dotnetReleaseVersion}", |
| 96 | + "-p:AssemblyVersion=${input:dotnetReleaseVersion}", |
| 97 | + "-p:FileVersion=${input:dotnetReleaseVersion}", |
| 98 | + "-p:IncludeSymbols=true", |
| 99 | + "--no-build" |
| 100 | + ], |
| 101 | + "type": "process", |
| 102 | + "problemMatcher": "$msCompile", |
| 103 | + "options": { |
| 104 | + "cwd": "${workspaceFolder}" |
| 105 | + }, |
| 106 | + "presentation": { |
| 107 | + "showReuseMessage": false |
| 108 | + } |
| 109 | + }, |
| 110 | + { |
| 111 | + "label": "dotnet: build sln (release)", |
| 112 | + "command": "dotnet", |
| 113 | + "args": [ |
| 114 | + "build", |
| 115 | + "${workspaceFolder}/src/TeamCloud.sln", |
| 116 | + "-c", |
| 117 | + "Release", |
| 118 | + "-p:VersionPrefix=${input:dotnetReleaseVersion}", |
| 119 | + "-p:AssemblyVersion=${input:dotnetReleaseVersion}", |
| 120 | + "-p:FileVersion=${input:dotnetReleaseVersion}", |
| 121 | + "-p:IncludeSymbols=true" |
| 122 | + ], |
| 123 | + "type": "process", |
| 124 | + "dependsOn": "dotnet: clean sln", |
| 125 | + "problemMatcher": "$msCompile", |
| 126 | + "options": { |
| 127 | + "cwd": "${workspaceFolder}/src" |
| 128 | + }, |
| 129 | + "presentation": { |
| 130 | + "group": "build", |
| 131 | + "showReuseMessage": false |
| 132 | + } |
| 133 | + }, |
| 134 | + { |
| 135 | + "label": "ngrok: start", |
62 | 136 | "command": "ngrok", |
63 | 137 | "args": [ |
64 | 138 | "http", |
|
73 | 147 | "problemMatcher": [] |
74 | 148 | }, |
75 | 149 | { |
76 | | - "label": "setNgrokUrl", |
| 150 | + "label": "ngrok: set url", |
77 | 151 | "command": "python3", |
78 | 152 | "args": [ |
79 | 153 | "scripts/get-url.py" |
|
82 | 156 | "problemMatcher": [] |
83 | 157 | }, |
84 | 158 | { |
85 | | - "label": "npmStart", |
| 159 | + "label": "npm: start", |
86 | 160 | "command": "npm", |
87 | 161 | "args": [ |
88 | 162 | "start" |
|
96 | 170 | "cwd": "${workspaceFolder}/web" |
97 | 171 | }, |
98 | 172 | "dependsOn": [ |
99 | | - "setNgrokUrl" |
| 173 | + "ngrok: set url" |
100 | 174 | ] |
101 | 175 | }, |
102 | 176 | { |
|
183 | 257 | "-n", |
184 | 258 | "teamcloud" |
185 | 259 | ] |
| 260 | + }, |
| 261 | + { |
| 262 | + "label": "cli: setup azdev", |
| 263 | + "type": "shell", |
| 264 | + "command": "source client/env/bin/activate; azdev setup -r ${workspaceFolder} -e tc", |
| 265 | + "options": { |
| 266 | + "cwd": "${workspaceFolder}" |
| 267 | + }, |
| 268 | + "presentation": { |
| 269 | + "showReuseMessage": false, |
| 270 | + }, |
| 271 | + "dependsOrder": "sequence", |
| 272 | + "dependsOn": [ |
| 273 | + "cli: create venv", |
| 274 | + "cli: install azdev" |
| 275 | + ], |
| 276 | + "problemMatcher": [] |
| 277 | + }, |
| 278 | + { |
| 279 | + "label": "cli: install azdev", |
| 280 | + "type": "shell", |
| 281 | + "command": "source client/env/bin/activate; pip3 install azdev", |
| 282 | + "options": { |
| 283 | + "cwd": "${workspaceFolder}" |
| 284 | + }, |
| 285 | + "presentation": { |
| 286 | + "showReuseMessage": false, |
| 287 | + } |
| 288 | + }, |
| 289 | + { |
| 290 | + "label": "cli: create venv", |
| 291 | + "type": "shell", |
| 292 | + "command": "python3", |
| 293 | + "args": [ |
| 294 | + "-m", |
| 295 | + "venv", |
| 296 | + "env" |
| 297 | + ], |
| 298 | + "options": { |
| 299 | + "cwd": "${workspaceFolder}/client" |
| 300 | + }, |
| 301 | + "presentation": { |
| 302 | + "showReuseMessage": false, |
| 303 | + } |
| 304 | + }, |
| 305 | + { |
| 306 | + "label": "cli: delete env", |
| 307 | + "type": "shell", |
| 308 | + "command": "rm", |
| 309 | + "args": [ |
| 310 | + "-r", |
| 311 | + "env" |
| 312 | + ], |
| 313 | + "options": { |
| 314 | + "cwd": "${workspaceFolder}/client" |
| 315 | + }, |
| 316 | + "presentation": { |
| 317 | + "showReuseMessage": false, |
| 318 | + }, |
| 319 | + "problemMatcher": [] |
| 320 | + }, |
| 321 | + { |
| 322 | + "label": "func: delete task hub", |
| 323 | + "command": "func", |
| 324 | + "args": [ |
| 325 | + "durable", |
| 326 | + "delete-task-hub", |
| 327 | + "--connection-string-setting", |
| 328 | + "DurableFunctionsHubStorage" |
| 329 | + ], |
| 330 | + "options": { |
| 331 | + "cwd": "${workspaceFolder}/src/TeamCloud.Orchestrator" |
| 332 | + }, |
| 333 | + "presentation": { |
| 334 | + "showReuseMessage": false, |
| 335 | + }, |
| 336 | + "problemMatcher": [] |
186 | 337 | } |
187 | 338 | ], |
188 | 339 | "inputs": [ |
|
192 | 343 | "description": "Version for this tag (also builds a latest version).", |
193 | 344 | "default": "0.0.0" |
194 | 345 | }, |
| 346 | + { |
| 347 | + "id": "dotnetReleaseVersion", |
| 348 | + "type": "promptString", |
| 349 | + "description": "Version for this release.", |
| 350 | + "default": "1.0.0" |
| 351 | + }, |
195 | 352 | { |
196 | 353 | "id": "imageName", |
197 | 354 | "type": "pickString", |
|
0 commit comments