chore: add a devcontainer setup (#50)
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m30s
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m30s
Add a devcontainer setup and remove a few redundent pre-commit hooks Reviewed-on: #50
This commit was merged in pull request #50.
This commit is contained in:
37
.devcontainer/devcontainer.json
Normal file
37
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "JS Dev Container",
|
||||
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/git:1": {},
|
||||
"ghcr.io/devcontainers/features/git-lfs:1": {},
|
||||
"ghcr.io/devcontainers-extra/features/pre-commit:2": {},
|
||||
"ghcr.io/devcontainers-extra/features/npm-packages:1": {
|
||||
"packages": "@google/gemini-cli"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"esbenp.prettier-vscode",
|
||||
"vitest.explorer",
|
||||
"google.gemini-cli-vscode-ide-companion",
|
||||
"google.geminicodeassist"
|
||||
],
|
||||
"settings": {
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
}
|
||||
}
|
||||
},
|
||||
"postStartCommand": "bash .devcontainer/setup.sh",
|
||||
"remoteUser": "node",
|
||||
"updateRemoteUserUID": true,
|
||||
"mounts": [
|
||||
"source=pipx-venvs,target=/home/node/.local/share/pipx,type=volume",
|
||||
"source=pipx-bin,target=/home/node/.local/bin,type=volume",
|
||||
"source=pre-commit-cache,target=/home/node/.cache/pre-commit,type=volume",
|
||||
"source=${localEnv:USERPROFILE}/.gemini,target=/home/node/.gemini,type=bind",
|
||||
"source=gvscode-extensions,target=/home/node/.cache/google-vscode-extension,type=volume"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user