devcontainer.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // For format details, see https://aka.ms/devcontainer.json. For config options, see the
  2. // README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
  3. {
  4. "name": "GROWI-Dev",
  5. "dockerComposeFile": ["../compose.yml", "../compose.extend.yml"],
  6. "service": "app",
  7. "workspaceFolder": "/workspace/growi",
  8. "features": {
  9. "ghcr.io/devcontainers/features/node:2": {
  10. "version": "24",
  11. "pnpmVersion": "11.1.1"
  12. },
  13. "ghcr.io/devcontainers/features/github-cli:1": {}
  14. },
  15. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  16. // "forwardPorts": [],
  17. "initializeCommand": "/bin/bash .devcontainer/pdf-converter/initializeCommand.sh",
  18. // Use 'postCreateCommand' to run commands after the container is created.
  19. "postCreateCommand": "/bin/bash ./.devcontainer/app/postCreateCommand.sh",
  20. // Expose pnpm's global bin to every shell spawned by VS Code (integrated terminal,
  21. // lifecycle commands, and extension shells such as Claude Code) without relying on
  22. // ~/.bashrc, which non-interactive shells don't source.
  23. "remoteEnv": {
  24. "PNPM_HOME": "/home/vscode/.local/share/pnpm",
  25. "PATH": "/home/vscode/.local/share/pnpm:${containerEnv:PATH}"
  26. },
  27. // Configure tool-specific properties.
  28. "customizations": {
  29. "vscode": {
  30. "extensions": [
  31. // AI
  32. "anthropic.claude-code",
  33. // linter
  34. "biomejs.biome",
  35. "editorconfig.editorconfig",
  36. "shinnn.stylelint",
  37. "stylelint.vscode-stylelint",
  38. // markdown
  39. "bierner.markdown-mermaid",
  40. // TypeScript (Native Preview)
  41. "typescriptteam.native-preview",
  42. // Test
  43. "vitest.explorer",
  44. "ms-playwright.playwright",
  45. // git/github
  46. "codeinklingon.git-worktree-menu",
  47. "github.vscode-pull-request-github",
  48. "mhutchie.git-graph",
  49. "eamodio.gitlens",
  50. "cschleiden.vscode-github-actions",
  51. // DB
  52. "cweijan.vscode-database-client2",
  53. "mongodb.mongodb-vscode",
  54. // Debug
  55. "msjsdiag.debugger-for-chrome",
  56. "firefox-devtools.vscode-firefox-debug",
  57. // prisma
  58. "Prisma.prisma@6.19.0"
  59. ],
  60. "settings": {
  61. "terminal.integrated.defaultProfile.linux": "bash"
  62. }
  63. },
  64. },
  65. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  66. // "remoteUser": "root"
  67. }