forked from custom-cards/button-card
-
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.
- Loading branch information
Showing
4 changed files
with
66 additions
and
46 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
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 |
---|---|---|
@@ -1,28 +1,73 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [{ | ||
"label": "Run Home Assistant on port 9123", | ||
"type": "shell", | ||
"command": "dc start", | ||
"problemMatcher": [] | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch", | ||
"group": "test", | ||
"label": "npm: watch", | ||
"detail": "rollup -c --watch", | ||
"isBackground": true, | ||
"problemMatcher": { | ||
"pattern": [ | ||
{ | ||
"regexp": ".", | ||
"file": 1, | ||
"location": 2, | ||
"message": 3 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "^bundles\\s", | ||
"endsPattern": "^.*waiting for changes\\.\\.\\." | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Run Home Assistant configuration against /config", | ||
"type": "shell", | ||
"command": "dc check", | ||
"problemMatcher": [] | ||
"label": "devcontainer: Start HA", | ||
"command": "sh -c 'sudo --preserve-env=PATH container start'", | ||
"problemMatcher": { | ||
"pattern": [ | ||
{ | ||
"regexp": ".", | ||
"file": 1, | ||
"location": 2, | ||
"message": 3 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": ".", | ||
"endsPattern": "^Start Home Assistant$" | ||
} | ||
}, | ||
"group": "test", | ||
"isBackground": true | ||
}, | ||
{ | ||
"label": "Upgrade Home Assistant to latest dev", | ||
"type": "shell", | ||
"command": "dc install", | ||
"label": "debug", | ||
"group": "test", | ||
"dependsOn": ["devcontainer: Start HA", "npm: watch"], | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Install a spesific version of Home Assistant", | ||
"type": "shell", | ||
"command": "dc set-version", | ||
"problemMatcher": [] | ||
"label": "devcontainer: stop debug", | ||
"group": "test", | ||
"command": "sh", | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "never", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
}, | ||
"args": [ | ||
"-c", | ||
"sudo killall hass; sudo kill $(ps au | grep 'node.*rollup' | grep -v grep | awk {'print $2'}); exit 0;" | ||
] | ||
} | ||
] | ||
} |
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