diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..606bc85 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,2 @@ +ARG VARIANT=16-buster +FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..5b9410f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,20 @@ +{ + "name": "Node.js", + "build": { + "dockerfile": "Dockerfile", + "args": { "VARIANT": "16-buster" } + }, + "customizations": { + "vscode": { + "extensions": ["EditorConfig.EditorConfig", "esbenp.prettier-vscode"] + } + }, + "portsAttributes": { + "5173": { + "label": "Site (dev)", + "onAutoForward": "notify" + } + }, + "postCreateCommand": "yarn install", + "remoteUser": "node" +} diff --git a/.editorconfig b/.editorconfig index 60bb140..108e434 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,6 @@ indent_style = none indent_size = none trim_trailing_whitespace = false insert_final_newline = false + +[Dockerfile] +indent_size = 4 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c18d548 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "prettier.requireConfig": true +}