|
| 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 |
1 | 3 | {
|
2 |
| - // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: |
3 |
| - // https://github.com/microsoft/vscode-dev-containers/tree/v0.112.0/containers/typescript-node-12 |
4 |
| - "name": "Vue.js & Node.js", |
5 |
| - "build": { |
6 |
| - "dockerfile": "Dockerfile", |
7 |
| - "args": { |
8 |
| - "VARIANT": "14" |
9 |
| - } |
10 |
| - }, |
11 |
| - // Set *default* container specific settings.json values on container create. |
12 |
| - "settings": { |
13 |
| - "eslint.validate": ["javascript", "javascriptreact", "vue"], |
14 |
| - "eslint.workingDirectories": ["./", "./.vitepress"], |
15 |
| - "editor.codeActionsOnSave": { |
16 |
| - "source.fixAll.eslint": true |
17 |
| - } |
18 |
| - }, |
| 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:1-22-bookworm", |
19 | 7 |
|
20 |
| - // Add the IDs of extensions you want installed when the container is created. |
21 |
| - "extensions": [ |
22 |
| - "formulahendry.auto-rename-tag", |
23 |
| - "christian-kohler.path-intellisense", |
24 |
| - "CoenraadS.bracket-pair-colorizer", |
25 |
| - "streetsidesoftware.code-spell-checker", |
26 |
| - "visualstudioexptteam.vscodeintellicode", |
27 |
| - "alefragnani.bookmarks", |
28 |
| - "sohamkamani.code-eol", |
29 |
| - "ms-azuretools.vscode-docker", |
30 |
| - "editorconfig.editorconfig", |
31 |
| - "esbenp.prettier-vscode", |
32 |
| - "dbaeumer.vscode-eslint", |
33 |
| - "mhutchie.git-graph", |
34 |
| - "eamodio.gitlens", |
35 |
| - "oderwat.indent-rainbow", |
36 |
| - "shd101wyy.markdown-preview-enhanced", |
37 |
| - "ms-vscode-remote.vscode-remote-extensionpack", |
38 |
| - "mosapride.zenkaku", |
39 |
| - "octref.vetur", |
40 |
| - "jcbuisson.vue", |
41 |
| - "dariofuzinato.vue-peek", |
42 |
| - "redhat.vscode-yaml" |
43 |
| - ], |
| 8 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | + // "features": {}, |
44 | 10 |
|
45 | 11 | // Use 'forwardPorts' to make a list of ports inside the container available locally.
|
46 |
| - "forwardPorts": [8080], |
| 12 | + // "forwardPorts": [], |
47 | 13 |
|
48 | 14 | // Use 'postCreateCommand' to run commands after the container is created.
|
49 |
| - "postCreateCommand": "npm install" |
| 15 | + "postCreateCommand": "npm install", |
50 | 16 |
|
51 |
| - // Use 'postStartCommand' to run commands after the container is started. |
52 |
| - // "postStartCommand": "npm ci" |
| 17 | + // Configure tool-specific properties. |
| 18 | + "customizations": { |
| 19 | + "vscode": { |
| 20 | + "extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"] |
| 21 | + } |
| 22 | + } |
53 | 23 |
|
54 |
| - // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. |
55 |
| - // "remoteUser": "node" |
| 24 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 25 | + // "remoteUser": "root" |
56 | 26 | }
|
0 commit comments