|
1 | 1 | { |
2 | | - "image": "mcr.microsoft.com/devcontainers/base:ubuntu", |
3 | | - "features": { |
4 | | - "ghcr.io/devcontainers/features/github-cli:1": {}, |
5 | | - "ghcr.io/devcontainers/features/go:1": { |
6 | | - "version": "1.24" |
7 | | - }, |
8 | | - "ghcr.io/github/features/goproxy:1": {}, |
9 | | - "ghcr.io/github/features/go-linter:2": {}, |
10 | | - "ghcr.io/devcontainers/features/sshd:1": { |
11 | | - "version": "latest" |
12 | | - }, |
13 | | - "ghcr.io/devcontainers/features/node:1": { |
14 | | - "nodeGypDependencies": true, |
15 | | - "version": "lts", |
16 | | - "nvmVersion": "latest" |
17 | | - }, |
18 | | - "ghcr.io/devcontainers/features/hugo:1": { |
19 | | - "extended": true, |
20 | | - "version": "latest" |
21 | | - } |
22 | | - }, |
23 | | - "onCreateCommand": ".devcontainer/on-create-command.sh", |
24 | | - "postCreateCommand": "./tools/setup", |
25 | | - "containerEnv": { |
26 | | - "GOPROXY": "https://goproxy.githubapp.com/mod,https://proxy.golang.org/,direct", |
27 | | - "GOPRIVATE": "", |
28 | | - "GONOPROXY": "", |
29 | | - "GONOSUMDB": "github.com/github/*" |
30 | | - }, |
31 | | - "customizations": { |
32 | | - "vscode": { |
33 | | - "extensions": [ |
34 | | - "golang.go", |
35 | | - // Recommended for Hextra theme |
36 | | - "mhutchie.git-graph", |
37 | | - "esbenp.prettier-vscode", |
38 | | - "tamasfe.even-better-toml", |
39 | | - "budparr.language-hugo-vscode", |
| 2 | + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", |
| 3 | + "containerUser": "vscode", |
| 4 | + "features": { |
| 5 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 6 | + "ghcr.io/devcontainers/features/go:1": { |
| 7 | + "version": "1.24" |
| 8 | + }, |
| 9 | + "ghcr.io/github/features/goproxy:1": {}, |
| 10 | + "ghcr.io/github/features/go-linter:2": {}, |
| 11 | + "ghcr.io/devcontainers/features/sshd:1": { |
| 12 | + "version": "latest" |
| 13 | + }, |
| 14 | + "ghcr.io/devcontainers/features/node:1": { |
| 15 | + "nodeGypDependencies": true, |
| 16 | + "version": "lts", |
| 17 | + "nvmVersion": "latest" |
| 18 | + }, |
| 19 | + "ghcr.io/devcontainers/features/hugo:1": { |
| 20 | + "extended": true, |
| 21 | + "version": "latest" |
| 22 | + } |
| 23 | + }, |
| 24 | + "onCreateCommand": ".devcontainer/on-create-command.sh", |
| 25 | + "postCreateCommand": "./tools/setup", |
| 26 | + "containerEnv": { |
| 27 | + "GOPROXY": "https://goproxy.githubapp.com/mod,https://proxy.golang.org/,direct", |
| 28 | + "GOPRIVATE": "", |
| 29 | + "GONOPROXY": "", |
| 30 | + "GONOSUMDB": "github.com/github/*" |
| 31 | + }, |
| 32 | + "customizations": { |
| 33 | + "vscode": { |
| 34 | + "extensions": [ |
| 35 | + "golang.go", |
| 36 | + // Recommended for Hextra theme |
| 37 | + "mhutchie.git-graph", |
| 38 | + "prettier.prettier-vscode", |
| 39 | + "tamasfe.even-better-toml", |
| 40 | + "budparr.language-hugo-vscode", |
40 | 41 |
|
41 | | - // Recommended extensions from https://gohugo.io/tools/editors/#visual-studio-code |
42 | | - // Front Matter CMS: https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter |
43 | | - "eliostruyf.vscode-front-matter", |
44 | | - |
45 | | - // Hugo Helper: https://marketplace.visualstudio.com/items?itemName=rusnasonov.vscode-hugo |
46 | | - "rusnasonov.vscode-hugo", |
47 | | - |
48 | | - // Hugo Language and Syntax Support: https://marketplace.visualstudio.com/items?itemName=budparr.language-hugo-vscode |
49 | | - "budparr.language-hugo-vscode", |
50 | | - |
51 | | - // Hugo Themer: https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-hugo-themer |
52 | | - "eliostruyf.vscode-hugo-themer", |
53 | | - |
54 | | - // hugofy: https://marketplace.visualstudio.com/items?itemName=akmittal.hugofy |
55 | | - "akmittal.hugofy", |
56 | | - |
57 | | - // Hugo Shortcode Syntax Highlighting: https://marketplace.visualstudio.com/items?itemName=kaellarkin.hugo-shortcode-syntax |
58 | | - "kaellarkin.hugo-shortcode-syntax" |
59 | | - ], |
60 | | - "settings": { |
61 | | - "go.lintFlags": [ |
62 | | - "--config=/workspaces/.golangci.toml", |
63 | | - "--whole-files", |
64 | | - "--new-from-rev=origin/main" |
65 | | - ] |
66 | | - } |
67 | | - }, |
68 | | - "codespaces": { |
69 | | - "repositories": { |
70 | | - "github/go-linter": { |
71 | | - "permissions": { |
72 | | - "contents": "read", |
73 | | - "packages": "read" |
74 | | - } |
75 | | - }, |
76 | | - "github/features": { |
77 | | - "permissions": { |
78 | | - "contents": "read", |
79 | | - "packages": "read" |
80 | | - } |
81 | | - }, |
82 | | - "github/*": { |
83 | | - "permissions": { |
84 | | - "contents": "read", |
85 | | - "packages": "read" |
86 | | - } |
87 | | - } |
88 | | - } |
89 | | - } |
90 | | - }, |
91 | | - "forwardPorts": [1313], |
92 | | - "portsAttributes": { |
93 | | - "8080": { |
94 | | - "label": "dev-server" |
95 | | - } |
96 | | - } |
| 42 | + // Recommended extensions from https://gohugo.io/tools/editors/#visual-studio-code |
| 43 | + "eliostruyf.vscode-front-matter", |
| 44 | + "rusnasonov.vscode-hugo", |
| 45 | + "budparr.language-hugo-vscode", |
| 46 | + "eliostruyf.vscode-hugo-themer", |
| 47 | + "akmittal.hugofy", |
| 48 | + "kaellarkin.hugo-shortcode-syntax" |
| 49 | + ], |
| 50 | + "settings": { |
| 51 | + "go.lintFlags": [ |
| 52 | + "--config=/workspaces/.golangci.toml", |
| 53 | + "--whole-files", |
| 54 | + "--new-from-rev=origin/main" |
| 55 | + ], |
| 56 | + "editor.defaultFormatter": "prettier.prettier-vscode", |
| 57 | + "editor.tabSize": 2, |
| 58 | + "editor.insertSpaces": true, |
| 59 | + "editor.detectIndentation": false, |
| 60 | + "prettier.requireConfig": true, |
| 61 | + "files.insertFinalNewline": true, |
| 62 | + "files.trimTrailingWhitespace": true |
| 63 | + } |
| 64 | + }, |
| 65 | + "codespaces": { |
| 66 | + "repositories": { |
| 67 | + "github/go-linter": { |
| 68 | + "permissions": { |
| 69 | + "contents": "read", |
| 70 | + "packages": "read" |
| 71 | + } |
| 72 | + }, |
| 73 | + "github/features": { |
| 74 | + "permissions": { |
| 75 | + "contents": "read", |
| 76 | + "packages": "read" |
| 77 | + } |
| 78 | + }, |
| 79 | + "github/*": { |
| 80 | + "permissions": { |
| 81 | + "contents": "read", |
| 82 | + "packages": "read" |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | + } |
| 87 | + }, |
| 88 | + "forwardPorts": [1313], |
| 89 | + "portsAttributes": { |
| 90 | + "8080": { |
| 91 | + "label": "dev-server" |
| 92 | + } |
| 93 | + } |
97 | 94 | } |
0 commit comments