devcontainer.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "Kilo Code Development",
  3. "dockerFile": "Dockerfile",
  4. "context": "..",
  5. "features": {
  6. "ghcr.io/devcontainers/features/git:1": {},
  7. "ghcr.io/devcontainers/features/github-cli:1": {}
  8. },
  9. "customizations": {
  10. "vscode": {
  11. "extensions": [
  12. "dbaeumer.vscode-eslint",
  13. "esbenp.prettier-vscode",
  14. "csstools.postcss",
  15. "bradlc.vscode-tailwindcss",
  16. "connor4312.esbuild-problem-matchers",
  17. "yoavbls.pretty-ts-errors",
  18. "ms-vscode.vscode-typescript-next"
  19. ],
  20. "settings": {
  21. "terminal.integrated.defaultProfile.linux": "bash",
  22. "typescript.preferences.includePackageJsonAutoImports": "auto",
  23. "eslint.workingDirectories": ["src", "webview-ui"],
  24. "prettier.requireConfig": true,
  25. "editor.formatOnSave": true,
  26. "editor.codeActionsOnSave": {
  27. "source.fixAll.eslint": "explicit"
  28. }
  29. }
  30. }
  31. },
  32. "forwardPorts": [3000, 5173, 8080],
  33. "portsAttributes": {
  34. "3000": {
  35. "label": "Dev Server",
  36. "onAutoForward": "notify"
  37. },
  38. "5173": {
  39. "label": "Vite Dev Server",
  40. "onAutoForward": "notify"
  41. },
  42. "8080": {
  43. "label": "Other Services",
  44. "onAutoForward": "silent"
  45. }
  46. },
  47. "postCreateCommand": "bash .devcontainer/setup.sh",
  48. "postStartCommand": "echo '🚀 Kilo Code devcontainer is ready!'",
  49. "remoteUser": "root",
  50. "containerUser": "root",
  51. "mounts": ["source=${localWorkspaceFolder}/.git,target=/workspace/.git,type=bind,consistency=cached"]
  52. }