devcontainer lisäys

This commit is contained in:
2026-03-11 17:11:41 +00:00
parent 9fd3acd5d7
commit ae946a5e64
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{
"name": "React Vite TypeScript",
"image": "mcr.microsoft.com/devcontainers/typescript-node:22",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"typescript.preferences.includePackageJsonAutoImports": "auto",
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"extensions": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-next"
]
}
},
"postCreateCommand": "npm install",
"postStartCommand": "npm run dev"
}

20
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/src/main.tsx",
"outFiles": [
"${workspaceFolder}/**/*.js"
]
}
]
}