Skip to content

Instantly share code, notes, and snippets.

@rslay
Last active December 7, 2019 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rslay/92cb2d50362e609f7c967d0b8942a7c2 to your computer and use it in GitHub Desktop.
Save rslay/92cb2d50362e609f7c967d0b8942a7c2 to your computer and use it in GitHub Desktop.
vscode tasks.json - real-world example w/ multiple commands
{
"version": "2.0.0",
"tasks": [
{
"label": "Build for Windows x64",
"type": "shell",
// Place the labels of commands in this array, in order. More can be added.
"dependsOn":["UpdateFiles", "WarpExe"],
"command": "echo",
"args": [
"Successfully compiled into .\\bin folder!"
],
"group": {
"kind": "build",
"isDefault": true
},
},
// First command to be run
{
"label": "UpdateFiles",
"type": "shell",
"command": "(robocopy . WarpReleases zerochat.js node_modules /E /NFL /NDL /NP /XD WarpReleases bin .git .vscode) ^& IF %ERRORLEVEL% == 3 exit 0",
"group": "build"
},
// Second command to be run
{
"label": "WarpExe",
"type": "shell",
"command": "warp-packer.exe --arch windows-x64 --input_dir .\\WarpReleases --exec build.cmd --output .\\bin\\zerochat.exe",
"group": "build"
},
// Create more commands, add the label to dependsOn[] above
// {
// "label": "ThirdCommandName",
// "type": "shell",
// "command": "echo Hello World!",
// "group": "build"
// }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment