Files
advanced-camera-card/.devcontainer/devcontainer.json
T
Dermot Duffy 80ec92e3b2 refactor: Replace Rollup with Vite (#2656)
This is a high risk change: every byte the card ships is emitted by a
different bundler, minified by a different minifier, and every
stylesheet is compiled by a different sass. The intent is that the
card's behaviour is unchanged.

**Significant development win**: Build time drops from 24s to 1.1s 🎉 

Also adds a test suite ('dist') that runs against the built bundle.
2026-08-04 15:00:13 -07:00

62 lines
1.8 KiB
JSON

// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"dockerComposeFile": "../docker-compose.yml",
"service": "devcontainer",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false
}
},
"updateRemoteUserUID": true,
"workspaceFolder": "${localWorkspaceFolder}",
"initializeCommand": [".devcontainer/scripts/devcontainer_initialize.sh"],
"postCreateCommand": ["yarn", "install"],
"postAttachCommand": {
"preview": "yarn build && yarn preview"
},
"forwardPorts": [10001, "homeassistant:8123", "frigate:5000"],
"portsAttributes": {
"10001": {
"label": "Vite",
"onAutoForward": "silent"
},
"homeassistant:8123": {
"label": "Home Assistant",
"onAutoForward": "silent"
},
"frigate:5000": {
"label": "Frigate",
"onAutoForward": "silent"
}
},
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"runem.lit-plugin",
"davidanson.vscode-markdownlint",
"redhat.vscode-yaml",
"vitest.explorer",
"inlang.vs-code-extension",
"YoavBls.pretty-ts-errors",
"github.vscode-pull-request-github",
"github.vscode-github-actions",
"ms-azuretools.vscode-docker"
],
"settings": {
"task.allowAutomaticTasks": "on",
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true,
"[json][jsonc][yaml][markdown][typescript][javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
}
}
}