|
| 1 | +// Available variables which can be used inside of strings. |
| 2 | +// ${workspaceRoot}: the root folder of the team |
| 3 | +// ${file}: the current opened file |
| 4 | +// ${relativeFile}: the current opened file relative to workspaceRoot |
| 5 | +// ${fileBasename}: the current opened file's basename |
| 6 | +// ${fileDirname}: the current opened file's dirname |
| 7 | +// ${fileExtname}: the current opened file's extension |
| 8 | +// ${cwd}: the current working directory of the spawned process |
| 9 | +{ |
| 10 | + // See https://go.microsoft.com/fwlink/?LinkId=733558 |
| 11 | + // for the documentation about the tasks.json format |
| 12 | + "version": "2.0.0", |
| 13 | + "tasks": [ |
| 14 | + { |
| 15 | + "label": "Build Module", |
| 16 | + "type": "shell", |
| 17 | + "windows": { |
| 18 | + "command": "powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\Build.ps1 -BuildModule" |
| 19 | + }, |
| 20 | + "linux": { |
| 21 | + "command": "/usr/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -BuildModule" |
| 22 | + }, |
| 23 | + "osx": { |
| 24 | + "command": "/usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -BuildModule" |
| 25 | + }, |
| 26 | + "group": { |
| 27 | + "kind": "build", |
| 28 | + "isDefault": true |
| 29 | + }, |
| 30 | + "presentation": { |
| 31 | + "reveal": "always", |
| 32 | + "panel": "new" |
| 33 | + } |
| 34 | + }, |
| 35 | + { |
| 36 | + "label": "Run Tests", |
| 37 | + "type": "shell", |
| 38 | + "windows": { |
| 39 | + "command": "powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\Build.ps1 -Test" |
| 40 | + }, |
| 41 | + "linux": { |
| 42 | + "command": "/usr/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -Test" |
| 43 | + }, |
| 44 | + "osx": { |
| 45 | + "command": "/usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -Test" |
| 46 | + }, |
| 47 | + "group": { |
| 48 | + "kind": "build", |
| 49 | + "isDefault": true |
| 50 | + }, |
| 51 | + "presentation": { |
| 52 | + "reveal": "always", |
| 53 | + "panel": "new" |
| 54 | + } |
| 55 | + }, |
| 56 | + { |
| 57 | + "label": "Test, Build, Install and Load Module", |
| 58 | + "type": "shell", |
| 59 | + "windows": { |
| 60 | + "command": "powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\Build.ps1 -TestBuildAndInstallModule" |
| 61 | + }, |
| 62 | + "linux": { |
| 63 | + "command": "/usr/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -TestBuildAndInstallModule" |
| 64 | + }, |
| 65 | + "osx": { |
| 66 | + "command": "/usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -TestBuildAndInstallModule" |
| 67 | + }, |
| 68 | + "group": { |
| 69 | + "kind": "build", |
| 70 | + "isDefault": true |
| 71 | + }, |
| 72 | + "presentation": { |
| 73 | + "reveal": "always", |
| 74 | + "panel": "new" |
| 75 | + } |
| 76 | + }, |
| 77 | + { |
| 78 | + "label": "Insert Missing Comment Based Help", |
| 79 | + "type": "shell", |
| 80 | + "windows": { |
| 81 | + "command": "powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File ${workspaceRoot}\\Build.ps1 -AddMissingCBH" |
| 82 | + }, |
| 83 | + "linux": { |
| 84 | + "command": "/usr/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -AddMissingCBH" |
| 85 | + }, |
| 86 | + "osx": { |
| 87 | + "command": "/usr/local/bin/powershell -NoProfile -File ${workspaceRoot}\\Build.ps1 -AddMissingCBH" |
| 88 | + }, |
| 89 | + "group": { |
| 90 | + "kind": "build", |
| 91 | + "isDefault": true |
| 92 | + }, |
| 93 | + "presentation": { |
| 94 | + "reveal": "always", |
| 95 | + "panel": "new" |
| 96 | + } |
| 97 | + } |
| 98 | + ] |
| 99 | +} |
0 commit comments