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:
parent
0cc32e3a58
commit
f17f1fc329
9
.devcontainer/Dockerfile
Normal file
9
.devcontainer/Dockerfile
Normal 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>
|
53
.devcontainer/devcontainer.json
Normal file
53
.devcontainer/devcontainer.json
Normal 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"
|
||||
]
|
||||
}
|
@ -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}'",
|
||||
|
Loading…
x
Reference in New Issue
Block a user