Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/dotnet:1-9.0-bookworm",
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts",
"nodeGypDependencies": true
},
"ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:1": {},
"ghcr.io/devcontainers/features/azure-cli:1": {}
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/azure/azure-dev/azd:0": {}
},
"customizations": {
"vscode": {
Expand All @@ -16,16 +20,22 @@
"ms-dotnettools.csdevkit",
"ms-azuretools.vscode-azurefunctions",
"humao.rest-client",
"ms-azuretools.vscode-azurestaticwebapps"
"ms-azuretools.vscode-azurestaticwebapps",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vscode.vscode-typescript-next",
"VisualStudioExptTeam.vscodeintellicode",
"VisualStudioExptTeam.intellicode-api-usage-examples",
"ms-azuretools.vscode-bicep"
]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],
"forwardPorts": [7071, 3000],

// Install dependencies after container creation
"postCreateCommand": "cd api && dotnet restore && cd ../client && npm install",
// "portsAttributes": {
// "5001": {
// "protocol": "https"
Expand All @@ -39,5 +49,5 @@
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
"remoteUser": "root"
}
39 changes: 39 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
// 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": "chrome",
"request": "launch",
"name": "Debug React App (Chrome)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/client",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/src/*"
},
"preLaunchTask": "start-vite-dev-server"
},
{
"type": "msedge",
"request": "launch",
"name": "Debug React App (Edge)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/client",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/src/*"
},
"preLaunchTask": "start-vite-dev-server"
},
{
"type": "node-terminal",
"name": "Run Development Server",
"request": "launch",
"command": "npm run dev",
"cwd": "${workspaceFolder}/client"
}
]
}
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "start-vite-dev-server",
"type": "npm",
"script": "dev",
"path": "client/",
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"pattern": {
"regexp": "^$"
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*VITE.*",
"endsPattern": ".*ready in.*"
}
},
"presentation": {
"reveal": "always",
"panel": "dedicated"
}
}
]
}
Loading