From d7e9121febc757a9dd0bd82c7a6253a10ec603a5 Mon Sep 17 00:00:00 2001 From: Tristan F Date: Wed, 18 Jan 2023 12:44:48 +0000 Subject: [PATCH 1/2] chore: add devcontainer --- .devcontainer/Dockerfile | 11 +++++++++++ .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++ 2 files changed, 40 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..1c19195 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,11 @@ +# [Choice] Debian OS version: bullseye, buster +ARG VARIANT=bullseye +FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/base:0-${VARIANT} + +ENV DENO_INSTALL=/deno +RUN mkdir -p /deno \ + && curl -fsSL https://deno.land/x/install/install.sh | sh \ + && chown -R vscode /deno + +ENV PATH=${DENO_INSTALL}/bin:${PATH} \ + DENO_DIR=${DENO_INSTALL}/.cache/deno \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..9ecc026 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +{ + "name": "deno_blog", + "build": { + "dockerfile": "Dockerfile" + }, + + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + // Enables the project as a Deno project + "deno.enable": true, + // Enables Deno linting for the project + "deno.lint": true, + // Sets Deno as the default formatter for the project + "editor.defaultFormatter": "denoland.vscode-deno" + }, + + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "denoland.vscode-deno" + ] + } + }, + + "remoteUser": "vscode" +} \ No newline at end of file From 360a00e7a70a597a1a313ecfe512a9b2dfa2e5d3 Mon Sep 17 00:00:00 2001 From: Tristan F Date: Mon, 23 Jan 2023 19:20:00 +0000 Subject: [PATCH 2/2] style: fmt --- .devcontainer/devcontainer.json | 52 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9ecc026..a9b88be 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,29 +1,29 @@ { - "name": "deno_blog", - "build": { - "dockerfile": "Dockerfile" - }, + "name": "deno_blog", + "build": { + "dockerfile": "Dockerfile" + }, - // Configure tool-specific properties. - "customizations": { - // Configure properties specific to VS Code. - "vscode": { - // Set *default* container specific settings.json values on container create. - "settings": { - // Enables the project as a Deno project - "deno.enable": true, - // Enables Deno linting for the project - "deno.lint": true, - // Sets Deno as the default formatter for the project - "editor.defaultFormatter": "denoland.vscode-deno" - }, - - // Add the IDs of extensions you want installed when the container is created. - "extensions": [ - "denoland.vscode-deno" - ] - } - }, + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + // Enables the project as a Deno project + "deno.enable": true, + // Enables Deno linting for the project + "deno.lint": true, + // Sets Deno as the default formatter for the project + "editor.defaultFormatter": "denoland.vscode-deno" + }, - "remoteUser": "vscode" -} \ No newline at end of file + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "denoland.vscode-deno" + ] + } + }, + + "remoteUser": "vscode" +}