From 48496fa0b257eff487d4966b880f25bb50859bae Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Tue, 10 Sep 2024 13:19:54 -0700 Subject: [PATCH] feat: Add .devcontainer for codespaces (#360) --- .devcontainer/devcontainer.json | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..2f48b2b83 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,47 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet +{ + "name": "C# (.NET)", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, + "ghcr.io/devcontainers/features/github-cli:1": { + "version": "2" + }, + "ghcr.io/devcontainers/features/powershell:1": { + "version": "latest" + }, + "ghcr.io/azure/azure-dev/azd:0": { + "version": "latest" + }, + "ghcr.io/devcontainers/features/common-utils:2": {}, + "ghcr.io/devcontainers/features/dotnet:2": { + "version": "8.0", + "dotnetRuntimeVersions": "8.0", + "aspNetCoreRuntimeVersions": "8.0" + }, + "ghcr.io/devcontainers/features/node:1.3.1": { + "version": "20" + } + }, + "postCreateCommand": "dotnet restore && cd ./src && cd coalesce-vue && npm ci && cd ../coalesce-vue-vuetify2 && npm ci && cd ../coalesce-vue-vuetify3 && npm ci", + + "customizations": { + "vscode": { + "extensions": [ + "ms-vscode.vscode-node-azure-pack", + "GitHub.vscode-github-actions", + "ms-dotnettools.vscode-dotnet-runtime", + "ms-dotnettools.csdevkit", + "ms-dotnetools.csharp", + "streetsidesoftware.code-spell-checker", + "dbaeumer.vscode-eslint", + "vue.volar", + "vue.vscode-typescript-vue-plugin", + "esbenp.prettier-vscode", + "antfu.goto-alias" + ] + } + } +}