mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Devcontainer (#2847)
This commit is contained in:
7
.devcontainer/Dockerfile
Normal file
7
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM node:21-alpine3.18
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
git \
|
||||||
|
nano\
|
||||||
|
openssh
|
||||||
|
|
||||||
|
USER node
|
||||||
23
.devcontainer/devcontainer.json
Normal file
23
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "Pi-hole web devcontainer",
|
||||||
|
"dockerFile": "Dockerfile",
|
||||||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
|
"postCreateCommand": "npm install",
|
||||||
|
"customizations": {
|
||||||
|
// Configure properties specific to VS Code.
|
||||||
|
"vscode": {
|
||||||
|
"settings": {},
|
||||||
|
"extensions": [
|
||||||
|
"eamodio.gitlens",
|
||||||
|
"EditorConfig.EditorConfig",
|
||||||
|
"github.vscode-github-actions"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"containerEnv": {
|
||||||
|
"GIT_EDITOR": "nano"
|
||||||
|
},
|
||||||
|
"mounts": [
|
||||||
|
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -17,7 +17,7 @@ indent_size = 2
|
|||||||
[*.js]
|
[*.js]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[package.json]
|
[*.json]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[.yamllint.conf]
|
[.yamllint.conf]
|
||||||
|
|||||||
1991
package-lock.json
generated
1991
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,7 @@
|
|||||||
"eslint-plugin-compat": "^4.2.0",
|
"eslint-plugin-compat": "^4.2.0",
|
||||||
"postcss": "^8.4.31",
|
"postcss": "^8.4.31",
|
||||||
"postcss-cli": "^10.1.0",
|
"postcss-cli": "^10.1.0",
|
||||||
"prettier": "3.0.3",
|
"prettier": "^3.1.0",
|
||||||
"xo": "^0.56.0"
|
"xo": "^0.56.0"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
|
|||||||
Reference in New Issue
Block a user