mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
`make devc` now builds, initialises, and enters the devcontainer in one step — no VS Code required. A unified `scripts/devc.sh` replaces the old `devcontainer_shell.sh` with full lifecycle subcommands (up/shell/down/ restart/reset/status). Key changes: - Dockerfile Stage 2 copies node+pnpm from ui-builder (removes need for devcontainer feature, benefits sandbox playground too) - profile.d scripts moved from setup.sh → start-dev.sh so they survive container recreation (down → up) without re-running full setup - Volume-based sentinel (~/.devcontainer-initialized) lets devc.sh skip setup.sh when volumes persist, cutting restart to ~2s - Go toolchain PATH added to profile.d (login shell was losing it) - Makefile/mise.toml gain devc-up/-down/-restart/-reset/-status targets - Website docs updated with terminal-first flow and CLI path in diagrams
29 lines
784 B
JSON
29 lines
784 B
JSON
{
|
|
"name": "Skillshare Dev",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "skillshare-devcontainer",
|
|
"workspaceFolder": "/workspace",
|
|
"forwardPorts": [5173, 19420, 3000],
|
|
"portsAttributes": {
|
|
"5173": { "label": "Dashboard (ui)" },
|
|
"19420": { "label": "API Backend" },
|
|
"3000": { "label": "Docs (docs)" }
|
|
},
|
|
"remoteEnv": {
|
|
"PATH": "/workspace/.devcontainer/bin:/workspace/bin:${containerEnv:PATH}",
|
|
"SKILLSHARE_UI_HOST": "0.0.0.0"
|
|
},
|
|
"postCreateCommand": ".devcontainer/setup.sh",
|
|
"postStartCommand": ".devcontainer/start-dev.sh",
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"golang.go",
|
|
"bradlc.vscode-tailwindcss",
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode"
|
|
]
|
|
}
|
|
}
|
|
}
|