-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add devcontainer config (#130)
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "Deno", | ||
"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", | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": {} | ||
} | ||
} |