1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 07:05:21 -04:00

add Codespaces config

This commit is contained in:
Jake Jarvis 2021-10-25 12:08:11 -04:00
parent 0cc32e3a58
commit f17f1fc329
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
3 changed files with 62 additions and 1 deletions

9
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/ubuntu/.devcontainer/base.Dockerfile
# [Choice] Ubuntu version (use hirsuite or bionic on local arm64/Apple Silicon): hirsute, focal, bionic
ARG VARIANT="hirsute"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

View File

@ -0,0 +1,53 @@
// 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"
]
}

View File

@ -19,7 +19,6 @@
"build": "gulp",
"clean": "gulp clean",
"start": "gulp serve",
"start:vercel": "volta run --node 14 --npm 6 -- vercel dev",
"lint": "run-s lint:**",
"lint:js": "eslint .",
"lint:css": "stylelint '**/*.{css,scss}'",