added devcontainer

This commit is contained in:
somrat sorkar
2023-11-12 11:03:44 +00:00
parent eaf27f0ff8
commit 93cfca9e6a
4 changed files with 83 additions and 1 deletions

24
.devcontainer/devcontainer.json Executable file
View File

@@ -0,0 +1,24 @@
{
"name": "Hugo",
"build": {
"dockerfile": "Dockerfile",
"args": {
"NODE_VERSION": "20",
"GO_VERSION": "1.21.4",
"HUGO_VERSION": "0.120.4"
}
},
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"bradlc.vscode-tailwindcss",
"budparr.language-hugo-vscode",
"tamasfe.even-better-toml"
]
}
},
"remoteUser": "node",
"postCreateCommand": "npm install && npm run dev:example",
"forwardPorts": [1313]
}