- `VirtualBox-Wrapper.ps1` now takes 'up' or 'down' as opposed to a machine name. This allows start/stop of a virtualmachine. - `VirtualBox-Wrapper.ps1` now relies on a gitignored `localenv.json` to work. - `VirtualBox-Wrapper.ps1` can also optionally monitor the log file generated from the serial adapter in VirtualBox. - `readme.md` updated to provide instructions on how to populate the `localenv.json` file. - `tasks.json` updated to have a "Clean" task to --remove-orphans, the Build task depends on this. - `tasks.json` updated to have a "Close VirtualBox" task, this runs the `virtualbox-wrapper.ps1` in 'down' mode. The Build task depends on this. - `launch.json` updated to run the `VirtualBox-Wrapper.ps1` with the "-Command up" argument, instead of machine name. - .gitignore updated to ignore any instances of `localenv.json`.
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Build",
|
|
"command": "docker-compose",
|
|
"args": [
|
|
"run",
|
|
"builder",
|
|
],
|
|
"type": "shell",
|
|
"problemMatcher": [],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"dependsOn": [
|
|
"Close VirtualBox",
|
|
"Clean"
|
|
]
|
|
},
|
|
{
|
|
"label": "Build (Builder)",
|
|
"command": "docker-compose",
|
|
"args": [
|
|
"build",
|
|
"builder"
|
|
],
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"label": "Clean",
|
|
"command": "docker-compose",
|
|
"args": [
|
|
"down",
|
|
"--remove-orphans"
|
|
],
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"label": "Close VirtualBox",
|
|
"command": "./virtualbox-wrapper.ps1",
|
|
"args": [
|
|
"-Command",
|
|
"down"
|
|
],
|
|
"type": "shell"
|
|
}
|
|
]
|
|
} |