1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 13:38:27 -04:00
jarv.is/.devcontainer/devcontainer.json

54 lines
1.6 KiB
JSON

// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/ubuntu
{
"name": "Ubuntu",
"runArgs": ["--init"],
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick an Ubuntu version: hirsute, focal, bionic
// Use hirsute or bionic on local arm64/Apple Silicon.
"args": { "VARIANT": "hirsute" }
},
"features": {
"git": "os-provided",
"node": "14"
},
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm i -g vercel",
"postAttachCommand": "yarn install --frozen-lockfile",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [1337],
"portsAttributes": {
"1337": {
"label": "Webpack"
}
},
// Set *default* container specific settings.json values on container create.
"settings": {
"css.validate": false,
"scss.validate": false,
"html.format.templating": true,
"prettier.requireConfig": true,
"prettier.configPath": ".prettierrc",
"markdown.preview.lineHeight": 1.75
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"editorconfig.editorconfig",
"budparr.language-hugo-vscode",
"dbaeumer.vscode-eslint",
"davidanson.vscode-markdownlint",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"ms-vscode.wordcount"
]
}