chore: add .devcontainer (#22810)

This commit is contained in:
Pooya Parsa 2023-09-15 12:09:21 +02:00 committed by GitHub
parent 6326ad4f9d
commit bdbb87ac0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions

9
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:lts
RUN apt-get update && \
apt-get install -fy libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdbus-1-3 libdrm2 libxkbcommon0 libatspi2.0-0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2 && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}
RUN corepack enable && npx playwright install

View File

@ -0,0 +1,20 @@
// https://code.visualstudio.com/docs/devcontainers/containers
// https://containers.dev/implementors/json_reference/
{
"name": "nuxt-devcontainer",
"dockerFile": "Dockerfile",
"features": {},
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"ms-azuretools.vscode-docker",
"dbaeumer.vscode-eslint",
"github.vscode-github-actions",
"vue.volar"
]
}
},
"postStartCommand": "pnpm install && pnpm build:stub",
"mounts": ["type=volume,target=${containerWorkspaceFolder}/node_modules"]
}

1
.gitignore vendored
View File

@ -69,3 +69,4 @@ Temporary Items
.netlify .netlify
fixtures-temp fixtures-temp
.pnpm-store