Merge pull request #690 from felipecrs/debugger
Configure VS Code debug and tasks
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"bierner.lit-html",
|
"bierner.lit-html",
|
||||||
"runem.lit-plugin",
|
"runem.lit-plugin",
|
||||||
"auchenberg.vscode-browser-preview",
|
|
||||||
"davidanson.vscode-markdownlint",
|
"davidanson.vscode-markdownlint",
|
||||||
"redhat.vscode-yaml"
|
"redhat.vscode-yaml"
|
||||||
],
|
],
|
||||||
|
|||||||
Vendored
+1
-2
@@ -6,8 +6,7 @@
|
|||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"bierner.lit-html",
|
"bierner.lit-html",
|
||||||
"runem.lit-plugin",
|
"runem.lit-plugin",
|
||||||
"auchenberg.vscode-browser-preview",
|
|
||||||
"davidanson.vscode-markdownlint",
|
"davidanson.vscode-markdownlint",
|
||||||
"redhat.vscode-yaml"
|
"redhat.vscode-yaml"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+5
-7
@@ -1,15 +1,13 @@
|
|||||||
{
|
{
|
||||||
// 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": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"command": "yarn start",
|
"type": "pwa-chrome",
|
||||||
"name": "Run yarn start",
|
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "node-terminal",
|
"name": "Launch Chrome against Home Assistant",
|
||||||
"internalConsoleOptions": "openOnFirstSessionStart"
|
"url": "http://localhost:8123",
|
||||||
|
"webRoot": "${workspaceFolder}/dist",
|
||||||
|
"preLaunchTask": "Rollup & Home Assistant"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+51
-11
@@ -1,12 +1,52 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "npm",
|
"label": "Rollup",
|
||||||
"script": "start",
|
"type": "npm",
|
||||||
"problemMatcher": [],
|
"script": "start",
|
||||||
"label": "npm: start",
|
"problemMatcher": {
|
||||||
"detail": "rollup -c --watch"
|
"pattern": [
|
||||||
}
|
{
|
||||||
]
|
"regexp": ".",
|
||||||
}
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^bundles",
|
||||||
|
"endsPattern": "^created"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isBackground": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Home Assistant",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "container start",
|
||||||
|
"problemMatcher": {
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": ".",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": ".",
|
||||||
|
"endsPattern": "."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isBackground": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Rollup & Home Assistant",
|
||||||
|
"dependsOn": ["Rollup", "Home Assistant"],
|
||||||
|
"problemMatcher": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ const config = {
|
|||||||
output: {
|
output: {
|
||||||
file: 'dist/frigate-hass-card.js',
|
file: 'dist/frigate-hass-card.js',
|
||||||
format: 'es',
|
format: 'es',
|
||||||
|
...(dev && {
|
||||||
|
sourcemap: true,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
plugins: plugins,
|
plugins: plugins,
|
||||||
// These two files use this at the toplevel, which causes rollup warning
|
// These two files use this at the toplevel, which causes rollup warning
|
||||||
|
|||||||
@@ -18,5 +18,6 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
"sourceMap": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user