postCreateCommand.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. sudo chown -R vscode:vscode /workspace;
  2. # Instal additional packages
  3. sudo apt update
  4. sudo apt-get install -y --no-install-recommends \
  5. iputils-ping net-tools dnsutils
  6. sudo apt-get clean -y
  7. # Set permissions for shared directory for bulk export
  8. mkdir -p /tmp/page-bulk-export
  9. sudo chown -R vscode:vscode /tmp/page-bulk-export
  10. sudo chmod 700 /tmp/page-bulk-export
  11. # Install uv
  12. curl -LsSf https://astral.sh/uv/install.sh | sh
  13. # Install Claude Code
  14. curl -fsSL https://claude.ai/install.sh | bash
  15. # Setup pnpm
  16. SHELL=bash pnpm setup
  17. eval "$(cat /home/vscode/.bashrc)"
  18. pnpm config set store-dir /workspace/.pnpm-store
  19. # Install turbo
  20. pnpm install turbo --global
  21. # Install typescript-language-server for Claude Code LSP plugin
  22. # Use `npm -g` (not `pnpm --global`) so the binary lands in nvm's node bin, which is on the default PATH.
  23. # pnpm's global bin requires PNPM_HOME from ~/.bashrc, which the Claude Code extension's shell doesn't source.
  24. npm install -g typescript-language-server typescript
  25. # Install dependencies
  26. turbo run bootstrap
  27. # Install Lefthook git hooks
  28. pnpm lefthook install