Skip to content

Instantly share code, notes, and snippets.

@adback03
Created December 10, 2016 04:58
Show Gist options
  • Save adback03/ed67f223475dc94990aec76d713b1da6 to your computer and use it in GitHub Desktop.
Save adback03/ed67f223475dc94990aec76d713b1da6 to your computer and use it in GitHub Desktop.
Sample tasks.json with multiple commands
{
"version": "0.1.0",
"windows": {
"command": "cmd",
"args": [
"/C"
],
"isShellCommand": true
},
"linux": {
"command": "sh",
"args": [
"-c"
],
"isShellCommand": true
},
"osx": {
"command": "sh",
"args": [
"-c"
],
"isShellCommand": true
},
"tasks": [
{
"taskName": "build",
"suppressTaskName": true,
"args": [
"dotnet build"
],
"isBuildCommand": true,
"showOutput": "always",
"problemMatcher": "$msCompile"
},
{
"taskName": "restore",
"suppressTaskName": true,
"args": [
"dotnet restore"
]
},
{
"taskName": "npm install",
"suppressTaskName": true,
"args": [
"npm install"
]
},
{
"taskName": "compile typescript",
"suppressTaskName": true,
"args": [
"tsc -p ."
],
"isBuildCommand": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment