|
1 | 1 | {
|
2 | 2 | "folders": [
|
3 | 3 | {
|
| 4 | + "name": "Client", |
4 | 5 | "path": "."
|
5 | 6 | },
|
6 | 7 | {
|
| 8 | + "name": "Server", |
7 | 9 | "path": "../PowerShellEditorServices"
|
8 | 10 | }
|
9 | 11 | ],
|
|
31 | 33 | "powershell.codeFormatting.whitespaceBetweenParameters": true,
|
32 | 34 | "powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline"
|
33 | 35 | },
|
| 36 | + "tasks": { |
| 37 | + "version": "2.0.0", |
| 38 | + "windows": { |
| 39 | + "options": { |
| 40 | + "shell": { |
| 41 | + "executable": "pwsh.exe", |
| 42 | + "args": [ |
| 43 | + "-NoProfile", |
| 44 | + "-ExecutionPolicy", |
| 45 | + "Bypass", |
| 46 | + "-Command" |
| 47 | + ] |
| 48 | + } |
| 49 | + } |
| 50 | + }, |
| 51 | + "linux": { |
| 52 | + "options": { |
| 53 | + "shell": { |
| 54 | + "executable": "pwsh", |
| 55 | + "args": [ |
| 56 | + "-NoProfile", |
| 57 | + "-Command" |
| 58 | + ] |
| 59 | + } |
| 60 | + } |
| 61 | + }, |
| 62 | + "osx": { |
| 63 | + "options": { |
| 64 | + "shell": { |
| 65 | + "executable": "/usr/local/bin/pwsh", |
| 66 | + "args": [ |
| 67 | + "-NoProfile", |
| 68 | + "-Command" |
| 69 | + ] |
| 70 | + } |
| 71 | + } |
| 72 | + }, |
| 73 | + "tasks": [ |
| 74 | + { |
| 75 | + "label": "Build", |
| 76 | + "type": "shell", |
| 77 | + "options": { |
| 78 | + "cwd": "${workspaceFolder:Client}" |
| 79 | + }, |
| 80 | + "command": "Invoke-Build LinkEditorServices,Build", |
| 81 | + "problemMatcher": [ |
| 82 | + "$msCompile", |
| 83 | + "$tsc" |
| 84 | + ], |
| 85 | + "group": { |
| 86 | + "kind": "build", |
| 87 | + "isDefault": true |
| 88 | + } |
| 89 | + }, |
| 90 | + { |
| 91 | + "label": "Test Client", |
| 92 | + "type": "shell", |
| 93 | + "options": { |
| 94 | + "cwd": "${workspaceFolder:Client}" |
| 95 | + }, |
| 96 | + "command": "Invoke-Build LinkEditorServices,Test", |
| 97 | + "problemMatcher": [ |
| 98 | + "$msCompile", |
| 99 | + "$tsc" |
| 100 | + ], |
| 101 | + "group": { |
| 102 | + "kind": "test", |
| 103 | + "isDefault": true |
| 104 | + } |
| 105 | + }, |
| 106 | + { |
| 107 | + "label": "Test Server", |
| 108 | + "type": "shell", |
| 109 | + "options": { |
| 110 | + "cwd": "${workspaceFolder:Server}" |
| 111 | + }, |
| 112 | + "problemMatcher": [ |
| 113 | + "$msCompile" |
| 114 | + ], |
| 115 | + "command": "Invoke-Build TestServerPS72", |
| 116 | + "group": { |
| 117 | + "kind": "test", |
| 118 | + "isDefault": true |
| 119 | + } |
| 120 | + }, |
| 121 | + { |
| 122 | + "label": "Invoke-Build Client", |
| 123 | + "type": "shell", |
| 124 | + "options": { |
| 125 | + "cwd": "${workspaceFolder:Client}" |
| 126 | + }, |
| 127 | + "command": "Invoke-Build ${input:clientBuildCommand}", |
| 128 | + "group": "build" |
| 129 | + }, |
| 130 | + { |
| 131 | + "label": "Invoke-Build Server", |
| 132 | + "type": "shell", |
| 133 | + "options": { |
| 134 | + "cwd": "${workspaceFolder:Server}" |
| 135 | + }, |
| 136 | + "command": "Invoke-Build ${input:serverBuildCommand}", |
| 137 | + "group": "build" |
| 138 | + } |
| 139 | + ], |
| 140 | + "inputs": [ |
| 141 | + { |
| 142 | + "type": "pickString", |
| 143 | + "id": "clientBuildCommand", |
| 144 | + "description": "Which Invoke-Build Client Task?", |
| 145 | + "options": [ |
| 146 | + "Restore", |
| 147 | + "Clean", |
| 148 | + "LinkEditorServices", |
| 149 | + "Build", |
| 150 | + "Test", |
| 151 | + "Package" |
| 152 | + ], |
| 153 | + "default": "Clean" |
| 154 | + }, |
| 155 | + { |
| 156 | + "type": "pickString", |
| 157 | + "id": "serverBuildCommand", |
| 158 | + "description": "Which Invoke-Build Server Task?", |
| 159 | + "options": [ |
| 160 | + "SetupDotNet", |
| 161 | + "BinClean", |
| 162 | + "Clean", |
| 163 | + "Build", |
| 164 | + "Test", |
| 165 | + "TestServer", |
| 166 | + "TestServerPS72", |
| 167 | + "TestE2E", |
| 168 | + ], |
| 169 | + "default": "Clean" |
| 170 | + } |
| 171 | + ] |
| 172 | + }, |
34 | 173 | "launch": {
|
35 | 174 | "version": "0.2.0",
|
36 | 175 | "configurations": [
|
|
0 commit comments