|
| 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/typescript-node |
| 3 | +{ |
| 4 | + "name": "Node.js & TypeScript", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "image": "mcr.microsoft.com/devcontainers/typescript-node", |
| 7 | + "mounts": [ |
| 8 | + "source=ickb-${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume", |
| 9 | + "source=ickb-${localWorkspaceFolderBasename}-dist,target=${containerWorkspaceFolder}/dist,type=volume", |
| 10 | + "source=pnpm-cache,target=${containerWorkspaceFolder}/.pnpm-store,type=volume" |
| 11 | + ], |
| 12 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 13 | + // "features": {}, |
| 14 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 15 | + // "forwardPorts": [], |
| 16 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 17 | + "postCreateCommand": "sudo chown node -R . && npm install -g pnpm@latest && pnpm install", |
| 18 | + // Configure tool-specific properties. |
| 19 | + // "customizations": {}, |
| 20 | + "remoteUser": "node", |
| 21 | + "customizations": { |
| 22 | + // Configure properties specific to VS Code. |
| 23 | + "vscode": { |
| 24 | + // Set *default* container specific settings.json values on container create. |
| 25 | + "settings": { |
| 26 | + "eslint.validate": [ |
| 27 | + "json", |
| 28 | + "javascript", |
| 29 | + "javascriptreact", |
| 30 | + "typescript", |
| 31 | + "typescriptreact" |
| 32 | + ] |
| 33 | + }, |
| 34 | + "extensions": [ |
| 35 | + "streetsidesoftware.code-spell-checker", |
| 36 | + "dbaeumer.vscode-eslint", |
| 37 | + "esbenp.prettier-vscode", |
| 38 | + "yoavbls.pretty-ts-errors", |
| 39 | + "davidanson.vscode-markdownlint", |
| 40 | + "github.vscode-github-actions" |
| 41 | + ] |
| 42 | + } |
| 43 | + } |
| 44 | +} |
0 commit comments