|
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 | | -// ${fileBasename}: the current opened file's basename |
5 | | -// ${fileDirname}: the current opened file's dirname |
6 | | -// ${fileExtname}: the current opened file's extension |
7 | | -// ${cwd}: the current working directory of the spawned process |
8 | | - |
9 | | -// A task runner that calls a custom npm script that compiles the extension. |
10 | 1 | { |
11 | | - "version": "0.1.0", |
12 | | - |
13 | | - // we want to run npm |
14 | | - "command": "npm", |
15 | | - |
16 | | - // the command is a shell script |
17 | | - "isShellCommand": true, |
| 2 | + "version": "0.1.0", |
| 3 | + |
| 4 | + "windows": { |
| 5 | + "command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe", |
| 6 | + "args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ] |
| 7 | + }, |
| 8 | + "linux": { |
| 9 | + "command": "/usr/bin/powershell", |
| 10 | + "args": [ "-NoProfile" ] |
| 11 | + }, |
| 12 | + "osx": { |
| 13 | + "command": "/usr/local/bin/powershell", |
| 14 | + "args": [ "-NoProfile" ] |
| 15 | + }, |
| 16 | + |
| 17 | + "isShellCommand": true, |
| 18 | + "showOutput": "always", |
18 | 19 |
|
19 | 20 | "tasks": [ |
20 | 21 | { |
21 | | - "taskName": "install", |
22 | | - "showOutput": "always" |
| 22 | + "taskName": "Install", |
| 23 | + "suppressTaskName": true, |
| 24 | + "args": [ "Invoke-Build Restore" ] |
23 | 25 | }, |
24 | 26 | { |
25 | | - "taskName": "compile", |
26 | | - "isBuildCommand": true, |
| 27 | + "taskName": "Clean", |
27 | 28 | "suppressTaskName": true, |
28 | | - |
29 | | - // show the output window only if unrecognized errors occur. |
30 | | - "showOutput": "silent", |
31 | | - |
32 | | - // we run the custom script "compile" as defined in package.json |
33 | | - "args": ["run", "compile"], |
34 | | - |
35 | | - // use the standard tsc problem matcher to find compile problems in the output. |
36 | | - "problemMatcher": "$tsc" |
| 29 | + "args": [ "Invoke-Build Clean" ] |
37 | 30 | }, |
38 | 31 | { |
39 | | - "taskName": "compile-watch", |
| 32 | + "taskName": "Build", |
40 | 33 | "suppressTaskName": true, |
41 | | - |
42 | | - // show the output window only if unrecognized errors occur. |
43 | | - "showOutput": "silent", |
44 | | - |
45 | | - // we run the custom script "compile-watch" as defined in package.json |
46 | | - "args": ["run", "compile-watch"], |
47 | | - |
48 | | - // The tsc compiler is started in watching mode |
49 | | - "isWatching": true, |
50 | | - |
51 | | - // use the standard tsc in watch mode problem matcher to find compile problems in the output. |
52 | | - "problemMatcher": "$tsc-watch" |
| 34 | + "isBuildCommand": true, |
| 35 | + "args": [ "Invoke-Build Build" ] |
53 | 36 | } |
54 | 37 | ] |
55 | 38 | } |
0 commit comments