element-web/.devcontainer/devcontainer.json
David Langley 6768b4e9de chore: remove walkthrough, CLI fallback scripts, fix MCP autostart
- Remove VSCode walkthrough from storybook-launcher extension
- Remove CLI fallback scripts (figma-file, figma-node, figma-components)
  and their pnpm aliases — MCP server handles all Figma access
- Fix chat.mcp.autoStart: false → true in devcontainer.json so Figma
  MCP server starts automatically (was overridden by .vscode/settings.json)
- Sync workbench.startupEditor to 'none' in devcontainer.json
- Update designer agent to remove fallback section references
- Update docs and setup guide story to clarify FIGMA_TOKEN must be set
  before creating the Codespace, with rebuild workaround if missed
2026-04-01 10:48:30 +00:00

59 lines
2.1 KiB
JSON

{
"name": "element-web designer prototyping",
"image": "mcr.microsoft.com/devcontainers/javascript-node:24-bookworm",
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"storage": "32gb"
},
"postCreateCommand": "pnpm install --frozen-lockfile && pnpm --filter @element-hq/web-shared-components run build && git checkout -b design/${GITHUB_USER}/$(date +%Y%m%d) 2>/dev/null || true",
"postAttachCommand": {
"install-vsix": "node .devcontainer/storybook-launcher/build-vsix.mjs && code --install-extension $(ls .devcontainer/storybook-launcher/*.vsix | head -1) --force 2>/dev/null",
"element-web": "cp -n apps/web/config.sample.json apps/web/config.json && cd apps/web && pnpm start",
"storybook": "pnpm run storybook:design"
},
"forwardPorts": [6007, 8080],
"portsAttributes": {
"6007": {
"label": "Shared Components Storybook",
"onAutoForward": "openPreview",
"requireLocalPort": false
},
"8080": {
"label": "Element Web",
"onAutoForward": "notify",
"requireLocalPort": false
}
},
"customizations": {
"codespaces": {
"openFiles": []
},
"vscode": {
"settings": {
"chat.mcp.autoStart": true,
"workbench.startupEditor": "none",
"workbench.tips.enabled": false,
"workbench.welcome.enabled": false,
"github.copilot.chat.openAtStartup": true
},
"extensions": [
"GitHub.copilot",
"GitHub.copilot-chat"
],
"mcp": {
"servers": {
"element-web-figma": {
"command": "node",
"args": [
"scripts/design/figma-mcp-server.mjs"
],
"env": {
"FIGMA_TOKEN": "${env:FIGMA_TOKEN}"
}
}
}
}
}
}
}