Add VSCode build tasks (#1421)

* Add VSCode build tasks

* Split to two build tasks

* Add combined task
This commit is contained in:
danecreekphotography 2020-12-04 00:55:30 -08:00 committed by GitHub
parent eccc5e6d61
commit 938eefae9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,42 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build: HTML and binary",
"dependsOn": [
"Build: HTML only",
"Build: binary only"
],
"dependsOrder": "sequence",
"problemMatcher": [
"$platformio",
],
},
{
"type": "PlatformIO",
"label": "Build: binary only",
"task": "Build",
"group": {
"kind": "build",
"isDefault": true,
},
"problemMatcher": [
"$platformio"
],
"presentation": {
"panel": "shared"
}
},
{
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": [],
"label": "Build: HTML only",
"detail": "npm run build",
"presentation": {
"panel": "shared"
}
}
]
}