|
| 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/javascript-node |
| 3 | +{ |
| 4 | +"name":"Node.js", |
| 5 | +// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | +"image":"mcr.microsoft.com/devcontainers/javascript-node:22", |
| 7 | + |
| 8 | +// Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | +// "features": {}, |
| 10 | + |
| 11 | +// Configure tool-specific properties. |
| 12 | +"customizations": { |
| 13 | +// Configure properties specific to VS Code. |
| 14 | +"vscode": { |
| 15 | +"settings": { |
| 16 | +"workbench.colorTheme":"Default Dark+", |
| 17 | +"workbench.iconTheme":"material-icon-theme" |
| 18 | + }, |
| 19 | +"extensions": [ |
| 20 | +"bierner.markdown-preview-github-styles", |
| 21 | +"dbaeumer.vscode-eslint", |
| 22 | +"eamodio.gitlens", |
| 23 | +"EditorConfig.EditorConfig", |
| 24 | +"esbenp.prettier-vscode", |
| 25 | +"firsttris.vscode-jest-runner", |
| 26 | +"pkief.material-icon-theme", |
| 27 | +"streetsidesoftware.code-spell-checker", |
| 28 | +"yzhang.markdown-all-in-one" |
| 29 | + ] |
| 30 | + } |
| 31 | + }, |
| 32 | + |
| 33 | +// Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 34 | +"forwardPorts": [3000], |
| 35 | + |
| 36 | +// Use 'portsAttributes' to set default properties for specific forwarded ports. |
| 37 | +// More info: https://containers.dev/implementors/json_reference/#port-attributes |
| 38 | +// "portsAttributes": { |
| 39 | +// "3000": { |
| 40 | +// "label": "Hello Remote World", |
| 41 | +// "onAutoForward": "notify" |
| 42 | +// } |
| 43 | +// }, |
| 44 | + |
| 45 | +// Use 'postCreateCommand' to run commands after the container is created. |
| 46 | +"postCreateCommand":"yarn install" |
| 47 | + |
| 48 | +// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 49 | +// "remoteUser": "root" |
| 50 | +} |