forked from home-assistant/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug launch conf for VS Code (home-assistant#7683)
- Loading branch information
Showing
6 changed files
with
213 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
// https://github.com/microsoft/vscode-js-debug/blob/master/OPTIONS.md | ||
"configurations": [ | ||
{ | ||
"name": "Debug Frontend", | ||
"request": "launch", | ||
"type": "pwa-chrome", | ||
"url": "http://localhost:8123/", | ||
"webRoot": "${workspaceFolder}/hass_frontend", | ||
"disableNetworkCache": true, | ||
"preLaunchTask": "Develop Frontend", | ||
}, | ||
{ | ||
"name": "Debug Gallery", | ||
"request": "launch", | ||
"type": "pwa-chrome", | ||
"url": "http://localhost:8100/", | ||
"webRoot": "${workspaceFolder}/gallery/dist", | ||
"disableNetworkCache": true, | ||
"preLaunchTask": "Develop Gallery" | ||
}, | ||
{ | ||
"name": "Debug Demo", | ||
"request": "launch", | ||
"type": "pwa-chrome", | ||
"url": "http://localhost:8090/", | ||
"webRoot": "${workspaceFolder}/demo/dist", | ||
"disableNetworkCache": true, | ||
"preLaunchTask": "Develop Demo" | ||
}, | ||
{ | ||
"name": "Debug Cast", | ||
"request": "launch", | ||
"type": "pwa-chrome", | ||
"url": "http://localhost:8080/", | ||
"webRoot": "${workspaceFolder}/cast/dist", | ||
"disableNetworkCache": true, | ||
"preLaunchTask": "Develop Cast" | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Develop Frontend", | ||
"type": "gulp", | ||
"task": "develop-app", | ||
// Sync changes here to other tasks until issue resolved | ||
// https://github.com/Microsoft/vscode/issues/61497 | ||
"problemMatcher": { | ||
"owner": "ha-build", | ||
"source": "ha-build", | ||
"fileLocation": "absolute", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "(SyntaxError): (.+): (.+) \\((\\d+):(\\d+)\\)", | ||
"severity": 1, | ||
"file": 2, | ||
"message": 3, | ||
"line": 4, | ||
"column": 5 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "Changes detected. Starting compilation", | ||
"endsPattern": "Build done @" | ||
} | ||
}, | ||
"isBackground": true, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"runOptions": { | ||
"instanceLimit": 1 | ||
} | ||
}, | ||
{ | ||
"label": "Develop Gallery", | ||
"type": "gulp", | ||
"task": "develop-gallery", | ||
"problemMatcher": { | ||
"owner": "ha-build", | ||
"source": "ha-build", | ||
"fileLocation": "absolute", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "(SyntaxError): (.+): (.+) \\((\\d+):(\\d+)\\)", | ||
"severity": 1, | ||
"file": 2, | ||
"message": 3, | ||
"line": 4, | ||
"column": 5 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "Changes detected. Starting compilation", | ||
"endsPattern": "Build done @" | ||
} | ||
}, | ||
|
||
"isBackground": true, | ||
"group": "build", | ||
"runOptions": { | ||
"instanceLimit": 1 | ||
} | ||
}, | ||
{ | ||
"label": "Develop Demo", | ||
"type": "gulp", | ||
"task": "develop-demo", | ||
"problemMatcher": { | ||
"owner": "ha-build", | ||
"source": "ha-build", | ||
"fileLocation": "absolute", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "(SyntaxError): (.+): (.+) \\((\\d+):(\\d+)\\)", | ||
"severity": 1, | ||
"file": 2, | ||
"message": 3, | ||
"line": 4, | ||
"column": 5 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "Changes detected. Starting compilation", | ||
"endsPattern": "Build done @" | ||
} | ||
}, | ||
|
||
"isBackground": true, | ||
"group": "build", | ||
"runOptions": { | ||
"instanceLimit": 1 | ||
} | ||
}, | ||
{ | ||
"label": "Develop Cast", | ||
"type": "gulp", | ||
"task": "develop-cast", | ||
"problemMatcher": { | ||
"owner": "ha-build", | ||
"source": "ha-build", | ||
"fileLocation": "absolute", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "(SyntaxError): (.+): (.+) \\((\\d+):(\\d+)\\)", | ||
"severity": 1, | ||
"file": 2, | ||
"message": 3, | ||
"line": 4, | ||
"column": 5 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "Changes detected. Starting compilation", | ||
"endsPattern": "Build done @" | ||
} | ||
}, | ||
|
||
"isBackground": true, | ||
"group": "build", | ||
"runOptions": { | ||
"instanceLimit": 1 | ||
} | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters