From 1a31720a00b304457e0415546f75299ed718fd65 Mon Sep 17 00:00:00 2001 From: "Mikey Lombardi (He/Him)" Date: Wed, 17 May 2023 09:29:28 -0500 Subject: [PATCH] (AB#4176) Add devcontainer for codespaces (#150) This change adds the devcontainer definition for the repository to support contributing in GitHub Codespaces. --- .devcontainer/Dockerfile | 4 ++++ .devcontainer/devcontainer.json | 42 +++++++++++++++++++++++++++++++++ .gitattributes | 3 +++ 3 files changed, 49 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..933f0c1 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,4 @@ +FROM mcr.microsoft.com/devcontainers/base:ubuntu +RUN wget https://github.com/errata-ai/vale/releases/download/v2.26.0/vale_2.26.0_Linux_64-bit.tar.gz && \ + tar -xvzf vale_2.26.0_Linux_64-bit.tar.gz -C bin && \ + export PATH=./bin:"$PATH" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..f2b24e4 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,42 @@ +{ + "build": { + "dockerfile": "Dockerfile" + }, + "features": { + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers/features/powershell:1": { + "modules": "Documentarian,Documentarian.Vale,Documentarian.MicrosoftDocs,Documentarian.ModuleAuthor" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "chrischinchilla.vale-vscode", + "davidanson.vscode-markdownlint", + "docsmsft.docs-images", + "docsmsft.docs-linting", + "docsmsft.docs-markdown", + "docsmsft.docs-preview", + "docsmsft.docs-yaml", + "eamodio.gitlens", + "marvhen.reflow-markdown", + "ms-vscode.powershell", + "ms-vscode.wordcount", + "nhoizey.gremlins", + "redhat.vscode-yaml", + "shuworks.vscode-table-formatter", + "streetsidesoftware.code-spell-checker", + "tyriar.sort-lines", + "usernamehw.errorlens", + "wmaurer.change-case" + ], + "settings": { + "terminal.integrated.defaultProfile.linux": "pwsh", + "vale.valeCLI.path": "", + "vale.valeCLI.config": "" + } + } + }, + "postStartCommand": "vale sync" +} diff --git a/.gitattributes b/.gitattributes index 9fb85ec..716ed37 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,6 +9,9 @@ # Declare files that will always have CRLF line endings on checkout. *.sln text eol=crlf +# Ensure devcontainer files are always LF +.devcontainer/** eol=lf + # Denote all files that are truly binary and should not be modified. *.png binary *.jpg binary \ No newline at end of file