aboutsummaryrefslogtreecommitdiffstats
path: root/.devcontainer/devcontainer.json
blob: 55fb912e967a9a30dedc1b13116554ad88fa2582 (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
{
    "name": "Neko (Dev)",
    "dockerComposeFile": [
        "../docker-compose.dev.yaml"
    ],
    "service": "neko-dev",
    "workspaceFolder": "/workspace",
    "customizations": {
        "vscode": {
            "settings": {
                "go.toolsManagement.checkForUpdates": "local",
                "go.useLanguageServer": true,
                "go.gopath": "/go",
                "editor.formatOnSave": true,
                "eslint.workingDirectories": [
                    "./frontend"
                ]
            },
            "extensions": [
                "golang.Go",
                "dbaeumer.vscode-eslint",
                "esbenp.prettier-vscode",
                "vitest.explorer",
                "ms-azuretools.vscode-docker"
            ]
        }
    },
    // Port forwarding is handled by docker-compose, but we list them here so VS Code knows about them
    "forwardPorts": [
        8080,
        5173
    ],
    "portsAttributes": {
        "5173": {
            "label": "Frontend (Vite)",
            "onAutoForward": "notify"
        },
        "8080": {
            "label": "Backend (Neko)",
            "onAutoForward": "notify"
        }
    },
    "postCreateCommand": "go mod download && (cd frontend && npm install)",
    "remoteUser": "vscode",
    "containerEnv": {
        "NEKO_PORT": "8080"
    }
}