I'm new to Visual Studio Code and trying to write tasks.json to perform my custom build task so that I can build my project by "Terminal / Run Build Task ...".
However, my build task is composed of multiple commands, like (windows script for example):
preBuildTask1.bat
preBuildTask2.bat
...
build.bat
...
postBuildTask1.bat
postBuildTask2.bat
...
I looks like task.json only allows me to put a single command for "command" property, like:
"tasks": [
{
"label": "emcc",
"type": "shell",
"command": "buildTask.ps1",
"group": {
"kind": "build",
"isDefault": true
}
},
]
}
My current work around is put all sub-tasks in a powershell script then invoke that script in tasks.json, like "buildTask.ps1" showed in the code above. It will be more convenient if I can directly write multiple tasks for a single command property. Anyone knows how to do that? Thanks.