diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index dfd9d31..3cc3a26 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ { "image": "thomasloven/hass-custom-devcontainer", "onCreateCommand": "sudo chown -R vscode:nvm /usr/local/share/nvm && npm install -g pnpm", - "postCreateCommand": "sudo -E container setup && pnpm config set store-dir $XDG_DATA_HOME && pnpm install", + "postCreateCommand": "sudo -E container setup && pip install --upgrade homeassistant && pnpm config set store-dir $XDG_DATA_HOME && pnpm install", "forwardPorts": [8123, 5173], "mounts": [ "source=${localWorkspaceFolder},target=/config/www/workspace,type=bind", diff --git a/.vscode/settings.json b/.vscode/settings.json index 1dcba76..4dc8bf2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "task.allowAutomaticTasks": "on" + "task.allowAutomaticTasks": "on", + "conventionalCommits.scopes": ["editor", "package", "vscode", "devcontainer"] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 6a61cd1..ca0e40a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -26,6 +26,36 @@ "label": "start dev", "dependsOn": ["run hass", "pnpm watch"], "problemMatcher": [] + }, + { + "label": "build", + "type": "shell", + "command": "pnpm", + "args": ["build"], + "problemMatcher": [], + "presentation": { + "echo": true, + "reveal": "always", + "focus": true, + "panel": "dedicated", + "showReuseMessage": true, + "clear": false + } + }, + { + "label": "build:no-check", + "type": "shell", + "command": "pnpm", + "args": ["build:no-check"], + "problemMatcher": [], + "presentation": { + "echo": true, + "reveal": "always", + "focus": true, + "panel": "dedicated", + "showReuseMessage": true, + "clear": false + } } ] } diff --git a/package.json b/package.json index 97d0f9f..8dd477f 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ ], "scripts": { "build": "tsc && vite build", + "build:no-check": "vite build", "watch": "vite build --mode development" }, "dependencies": {