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

46 lines
1.4 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": "jarv.is",
"runArgs": ["--init"],
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon.
"args": { "VARIANT": "16-bullseye" }
},
"features": {
"git": "os-provided"
},
// Use 'postCreateCommand' to run commands after the container is created.
"postStartCommand": "yarn install --frozen-lockfile && git update-index --assume-unchanged data/manifest.json && git config pull.rebase true",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [1337],
"portsAttributes": {
"1337": {
"label": "Webpack",
"onAutoForward": "notify"
}
},
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/zsh"
},
// 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"
]
}