mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-22 00:15:59 -04:00
add Codespaces config
This commit is contained in:
@@ -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>
|
||||||
@@ -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",
|
"build": "gulp",
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"start": "gulp serve",
|
"start": "gulp serve",
|
||||||
"start:vercel": "volta run --node 14 --npm 6 -- vercel dev",
|
|
||||||
"lint": "run-s lint:**",
|
"lint": "run-s lint:**",
|
||||||
"lint:js": "eslint .",
|
"lint:js": "eslint .",
|
||||||
"lint:css": "stylelint '**/*.{css,scss}'",
|
"lint:css": "stylelint '**/*.{css,scss}'",
|
||||||
|
|||||||
Reference in New Issue
Block a user