From fc7f5d1f2a363b17d57ba6fd8af647e20195c270 Mon Sep 17 00:00:00 2001 From: Priyanshu Maurya Date: Thu, 10 Aug 2023 20:03:11 +0000 Subject: [PATCH] [Added] codespaces auto setup --- .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..a30d631dd --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "hostRequirements": { + "cpus": 4 + }, + "waitFor": "onCreateCommand", + "updateContentCommand": "pnpm install", + "postCreateCommand": [ + "pnpm install -D tailwindcss@latest postcss@latest autoprefixer@latest", + "pnpm install -D typescript @types/react @types/node", + "pnpm install next react react-dom" + ], + "postAttachCommand": { + "server": "pnpm run dev" + }, + "customizations": { + "codespaces": { + "openFiles": ["src/App.tsx"] + } + }, + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [3000], + "extensions": [ + "octref.vetur", + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode" + ] +}