Last active
December 7, 2019 20:58
-
-
Save WR4F/92cb2d50362e609f7c967d0b8942a7c2 to your computer and use it in GitHub Desktop.
vscode tasks.json - real-world example w/ multiple commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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