vscode-hugo/.devcontainer.json

54 lines
1.7 KiB
JSON
Raw Normal View History

2024-08-17 00:35:18 +00:00
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Hugo",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/go:1-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/devcontainers/features/hugo:1": {
// "version": "0.128.2",
"version": "latest",
"extended": true
},
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
"packages": "git-flow"
},
"ghcr.io/devcontainers-contrib/features/go-task:1": {},
// "ghcr.io/devcontainers/features/node:1": {},
// SVG optimization tool
"ghcr.io/devcontainers-contrib/features/npm-package:1": {
"package": "svgo"
}
},
// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
"gruntfuggly.todo-tree",
"kaellarkin.hugo-shortcode-syntax",
"mhutchie.git-graph",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-german",
"tamasfe.even-better-toml",
"timonwong.shellcheck"
]
}
},
"postCreateCommand": "mkdir -p \"${HOME}/.oh-my-zsh/custom/completions\" && hugo completion zsh > \"${HOME}/.oh-my-zsh/custom/completions/_hugo\""
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}