aboutsummaryrefslogtreecommitdiff
path: root/src/node/devcontainer-feature.json
blob: 0123fdb731cd005332c826561eadbcb142e892fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
    "id": "node",
    "version": "1.3.1",
    "name": "Node.js (via nvm), yarn and pnpm",
    "documentationURL": "https://github.com/devcontainers/features/tree/main/src/node",
    "description": "Installs Node.js, nvm, yarn, pnpm, and needed dependencies.",
    "options": {
        "version": {
            "type": "string",
            "proposals": [
                "lts",
                "latest",
                "none",
                "18",
                "16",
                "14"
            ],
            "default": "lts",
            "description": "Select or enter a Node.js version to install"
        },
        "nodeGypDependencies": {
            "type": "boolean",
            "default": true,
            "description": "Install dependencies to compile native node modules (node-gyp)?"
        },
        "nvmInstallPath": {
            "type": "string",
            "default": "/usr/local/share/nvm",
            "description": "The path where NVM will be installed."
        },
        "nvmVersion": {
            "type": "string",
            "proposals": [
                "latest",
                "0.39"
            ],
            "default": "latest",
            "description": "Version of NVM to install."
        }
    },
    "customizations": {
        "vscode": {
            "extensions": [
                "dbaeumer.vscode-eslint"
            ]
        }
    },
    "containerEnv": {
        "NVM_DIR": "/usr/local/share/nvm",
        "NVM_SYMLINK_CURRENT": "true",
        "PATH": "/usr/local/share/nvm/current/bin:${PATH}"
    },
    "installsAfter": [
        "ghcr.io/devcontainers/features/common-utils"
    ]
}