Skip to content

Commit eef582b

Browse files
chore: update dev container tools (#9593)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: arii <342438+arii@users.noreply.github.com>
1 parent 44e9477 commit eef582b

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
{
2-
"name": "Node.js & TypeScript",
2+
"name": "HRM Development Environment",
33
"image": "mcr.microsoft.com/devcontainers/typescript-node:20-bullseye",
4-
"forwardPorts": [3000, 9229],
4+
"features": {
5+
"ghcr.io/devcontainers/features/github-cli:1": {}
6+
},
7+
"forwardPorts": [3000, 8080, 9229],
8+
"postCreateCommand": "bash .devcontainer/post-create.sh",
59
"customizations": {
610
"vscode": {
711
"extensions": [
812
"dbaeumer.vscode-eslint",
913
"esbenp.prettier-vscode",
14+
"bradlc.vscode-tailwindcss",
1015
"ms-playwright.playwright",
11-
"ms-vscode.vscode-typescript-next",
12-
"eamodio.gitlens",
13-
"mhutchie.git-graph",
1416
"github.vscode-pull-request-github",
15-
"humao.rest-client"
16-
]
17+
"firsttris.vscode-jest-runner"
18+
],
19+
"settings": {
20+
"editor.formatOnSave": true,
21+
"editor.defaultFormatter": "esbenp.prettier-vscode",
22+
"editor.codeActionsOnSave": {
23+
"source.fixAll.eslint": "explicit"
24+
}
25+
}
1726
}
18-
},
19-
"postCreateCommand": "bash .devcontainer/post-create.sh"
27+
}
2028
}

.devcontainer/post-create.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ set -e
33

44
echo "Starting post-create setup..."
55

6+
echo "Installing jq..."
7+
sudo apt-get update && sudo apt-get install -y jq
8+
69
# Run the main setup script
710
bash scripts/setup.sh
811

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

13-
echo "Dev container setup complete."
16+
echo "Dev container setup complete."

0 commit comments

Comments
 (0)