style: format devcontainer.json for improved readability and consistency

This commit is contained in:
Firman Ramdhani
2026-04-05 21:06:01 +07:00
parent 3638c8e1eb
commit a0ef96d874
+35 -40
View File
@@ -1,44 +1,39 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{ {
"name": "Node.js & TypeScript", "name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:24-bookworm" "image": "mcr.microsoft.com/devcontainers/typescript-node:24-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features. // Features to add to the dev container. More info: https://containers.dev/features.
"features": { "features": {
"ghcr.io/devcontainers/features/git:1": {}, "ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers-extra/features/pnpm:2": {}, "ghcr.io/devcontainers-extra/features/pnpm:2": {},
"ghcr.io/devcontainers/features/sshd:1": {} "ghcr.io/devcontainers/features/sshd:1": {}
}, },
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [ "forwardPorts": [6006, 5173, 5174, 5175],
6006, "portsAttributes": {
5173, "6006": {
5174, "label": "Storybook",
5175 "onAutoForward": "notify"
], },
"portsAttributes": { "5173": {
"6006": { "label": "Vites Application 1",
"label": "Storybook", "onAutoForward": "notify"
"onAutoForward": "notify" },
}, "5174": {
"5173": { "label": "Vites Application 2",
"label": "Vites Application 1", "onAutoForward": "notify"
"onAutoForward": "notify" },
}, "5175": {
"5174": { "label": "Vites Application 3",
"label": "Vites Application 2", "onAutoForward": "notify"
"onAutoForward": "notify" }
}, }
"5175": { // Use 'postCreateCommand' to run commands after the container is created.
"label": "Vites Application 3", // "postCreateCommand": "yarn install",
"onAutoForward": "notify" // Configure tool-specific properties.
} // "customizations": {},
} // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// Use 'postCreateCommand' to run commands after the container is created. // "remoteUser": "root"
// "postCreateCommand": "yarn install",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }