-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdevcontainer.json
More file actions
83 lines (82 loc) · 2.26 KB
/
devcontainer.json
File metadata and controls
83 lines (82 loc) · 2.26 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"containerUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.24"
},
"ghcr.io/github/features/goproxy:1": {},
"ghcr.io/github/features/go-linter:2": {},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "lts",
"nvmVersion": "latest"
},
"ghcr.io/devcontainers/features/hugo:1": {
"extended": true,
"version": "0.151.0"
}
},
"onCreateCommand": ".devcontainer/on-create-command.sh",
"postCreateCommand": "./tools/setup",
"containerEnv": {
"GOPROXY": "https://goproxy.githubapp.com/mod,https://proxy.golang.org/,direct",
"GOPRIVATE": "",
"GONOPROXY": "",
"GONOSUMDB": "github.com/github/*"
},
"customizations": {
"vscode": {
"extensions": [
"golang.go",
// Recommended for Hextra theme
"mhutchie.git-graph",
"esbenp.prettier-vscode",
// Recommended extensions from https://gohugo.io/tools/editors/#visual-studio-code
"eliostruyf.vscode-front-matter",
"rusnasonov.vscode-hugo",
"budparr.language-hugo-vscode",
"eliostruyf.vscode-hugo-themer",
"akmittal.hugofy",
"kaellarkin.hugo-shortcode-syntax"
],
"settings": {
"go.lintFlags": [
"--config=/workspaces/.golangci.toml",
"--whole-files",
"--new-from-rev=origin/main"
],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"prettier.requireConfig": true,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true
}
},
"codespaces": {
"repositories": {
"github/go-linter": {
"permissions": {
"contents": "read",
"packages": "read"
}
},
"github/features": {
"permissions": {
"contents": "read",
"packages": "read"
}
}
}
}
},
"forwardPorts": [1313],
"portsAttributes": {
"8080": {
"label": "dev-server"
}
}
}