update .gitignore & add vscode build & run tasks

This commit is contained in:
Dieter Schmidt
2022-09-23 00:00:21 +02:00
parent 48c86c3d3c
commit 2bb20bbb4f
2 changed files with 27 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
printer.cfg
!config/printer.cfg
.config
.config
build

25
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,25 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build Klipper Image",
"type": "shell",
"command": "docker build --pull --rm -f '${workspaceFolder}/klipper/Dockerfile' -t dimalo/klipper-moonraker:next ${workspaceFolder}",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Run Klipper Image",
"type": "shell",
"command": "docker run -it --rm --cap-add SYS_NICE dimalo/klipper-moonraker:next",
"group": {
"kind": "none",
"isDefault": true
}
}
]
}