Skip to content

Commit

Permalink
Add codespace configuration (#1)
Browse files Browse the repository at this point in the history
* initial devcontainer.json

* add launch and remove npm lock file
  • Loading branch information
Matt Henderson authored Nov 12, 2023
1 parent 9c868a0 commit 7110456
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 17,629 deletions.
30 changes: 30 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/pnpm:2": {}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
3000
],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pnpm install",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"MarkosTh09.color-picker",
"raczzalan.webgl-glsl-editor"
]
}
},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"configurations": [
{
"command": "pnpm run start",
"name": "launch",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceRoot}"
}
]
}
Loading

0 comments on commit 7110456

Please sign in to comment.