Skip to content

Commit

Permalink
Add a rudimentary devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed Sep 14, 2022
1 parent ec06eba commit a4d0d34
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:18-alpine
RUN npm --global install pnpm
RUN apk add --no-cache \
chromium \
git \
openssh \
ripgrep
USER node
ENV CHROME_BIN=chromium-browser
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "preact/signals",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.format.enable": true,
"explorer.excludeGitIgnore": true,
"[javascript][javascriptreact][typescript][typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
},
"extensions":[
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
},
"postCreateCommand": "pnpm i",
"remoteUser": "node"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

.pnpm-store/

0 comments on commit a4d0d34

Please sign in to comment.