mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
chore: add .devcontainer
(#22810)
This commit is contained in:
parent
6326ad4f9d
commit
bdbb87ac0b
9
.devcontainer/Dockerfile
Normal file
9
.devcontainer/Dockerfile
Normal 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
|
20
.devcontainer/devcontainer.json
Normal file
20
.devcontainer/devcontainer.json
Normal 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
1
.gitignore
vendored
@ -69,3 +69,4 @@ Temporary Items
|
|||||||
.netlify
|
.netlify
|
||||||
|
|
||||||
fixtures-temp
|
fixtures-temp
|
||||||
|
.pnpm-store
|
||||||
|
Loading…
Reference in New Issue
Block a user