Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{
"name": "Node.js & TypeScript",
"name": "HRM Development Environment",
"image": "mcr.microsoft.com/devcontainers/typescript-node:20-bullseye",
"forwardPorts": [3000, 9229],
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"forwardPorts": [3000, 8080, 9229],
"postCreateCommand": "bash .devcontainer/post-create.sh",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"ms-playwright.playwright",
"ms-vscode.vscode-typescript-next",
"eamodio.gitlens",
"mhutchie.git-graph",
"github.vscode-pull-request-github",
"humao.rest-client"
]
"firsttris.vscode-jest-runner"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
}
},
"postCreateCommand": "bash .devcontainer/post-create.sh"
}
}
5 changes: 4 additions & 1 deletion .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ set -e

echo "Starting post-create setup..."

echo "Installing jq..."
sudo apt-get update && sudo apt-get install -y jq

# Run the main setup script
bash scripts/setup.sh

# Install Playwright browsers and dependencies
echo "Installing Playwright browsers..."
npx playwright install --with-deps

echo "Dev container setup complete."
echo "Dev container setup complete."
Loading