mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-14 02:58:16 +01:00
706bbac9f0
this commit moves the default config into a seperate folder. And it adds a preLaunchTask which copies the default dev config to the used dev config. This is done with the cp option '-ru' so if the files in the target dir (current config) are newer they are not overwritten.
20 lines
No EOL
664 B
JSON
20 lines
No EOL
664 B
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "copy default cbpi config files if dev config files dont exist",
|
|
"type": "shell",
|
|
"command": "cp -ru ${workspaceFolder}/.devcontainer/cbpi-default-dev-config/. ${workspaceFolder}/.devcontainer/cbpi-dev-config",
|
|
"windows": {
|
|
"command": "echo 'this pre debug task should only be run inside the docker dev container - doing nothing instead'"
|
|
},
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "silent",
|
|
"panel": "shared"
|
|
}
|
|
}
|
|
]
|
|
} |