Compare commits
No commits in common. "55f484cf708a6e0dbb94097fd5a64fc8049165ba" and "5188570f2650d97056b2a75b83bf4ff813895a6d" have entirely different histories.
55f484cf70
...
5188570f26
49
.vscode/launch.json
vendored
49
.vscode/launch.json
vendored
@ -1,29 +1,22 @@
|
|||||||
{
|
{
|
||||||
// Use IntelliSense to learn about possible attributes.
|
// Use IntelliSense to learn about possible attributes.
|
||||||
// Hover to view descriptions of existing attributes.
|
// Hover to view descriptions of existing attributes.
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Debug React App",
|
"name": "Launch Chrome",
|
||||||
"type": "pwa-chrome",
|
"request": "launch",
|
||||||
"request": "launch",
|
"type": "chrome",
|
||||||
"url": "http://localhost:3001",
|
"url": "http://localhost:3000",
|
||||||
"webRoot": "${workspaceFolder}/src",
|
"webRoot": "${workspaceFolder}"
|
||||||
"runtimeExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
|
},
|
||||||
"runtimeArgs": [
|
{
|
||||||
"--remote-debugging-port=9222",
|
"type": "pwa-chrome",
|
||||||
"--user-data-dir=C:\\ChromeDebug"
|
"request": "launch",
|
||||||
],
|
"name": "Launch Chrome against localhost",
|
||||||
"preLaunchTask": "Start All",
|
"url": "http://localhost:3000",
|
||||||
"postDebugTask": "Stop All Tasks"
|
"webRoot": "${workspaceFolder}"
|
||||||
},
|
}
|
||||||
{
|
]
|
||||||
"name": "Attach to Chrome",
|
}
|
||||||
"type": "pwa-chrome",
|
|
||||||
"request": "attach",
|
|
||||||
"port": 9222,
|
|
||||||
"webRoot": "${workspaceFolder}/src"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
68
.vscode/tasks.json
vendored
68
.vscode/tasks.json
vendored
@ -1,68 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "Start Proxy",
|
|
||||||
"type": "process",
|
|
||||||
"command": "./proxy.cmd",
|
|
||||||
"isBackground": true,
|
|
||||||
"runOptions": {
|
|
||||||
"reevaluateOnRerun": true,
|
|
||||||
"terminateOnExit": true
|
|
||||||
},
|
|
||||||
"problemMatcher": {
|
|
||||||
"pattern": { "regexp": ".*" },
|
|
||||||
"background": {
|
|
||||||
"activeOnStart": true,
|
|
||||||
"beginsPattern": "^.*",
|
|
||||||
"endsPattern": "listening on|started|ready"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Start CRA",
|
|
||||||
"type": "process",
|
|
||||||
"command": "npm",
|
|
||||||
"args": ["start"],
|
|
||||||
"isBackground": true,
|
|
||||||
"runOptions": {
|
|
||||||
"reevaluateOnRerun": true,
|
|
||||||
"terminateOnExit": true
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"env": {
|
|
||||||
"BROWSER": "none"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"problemMatcher": {
|
|
||||||
"pattern": { "regexp": ".*" },
|
|
||||||
"background": {
|
|
||||||
"activeOnStart": true,
|
|
||||||
"beginsPattern": "^.*",
|
|
||||||
"endsPattern": "Compiled successfully|webpack compiled"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Start All",
|
|
||||||
"dependsOn": ["Start Proxy", "Start CRA"],
|
|
||||||
"dependsOrder": "parallel"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Stop All Tasks",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "powershell",
|
|
||||||
"args": [
|
|
||||||
"-ExecutionPolicy",
|
|
||||||
"Bypass",
|
|
||||||
"-File",
|
|
||||||
"${workspaceFolder}/stop-tasks.ps1"
|
|
||||||
],
|
|
||||||
"presentation": {
|
|
||||||
"reveal": "always",
|
|
||||||
"panel": "dedicated"
|
|
||||||
},
|
|
||||||
"problemMatcher": []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -1,4 +1,2 @@
|
|||||||
@echo off
|
|
||||||
cd ../e-suite.Proxy/
|
cd ../e-suite.Proxy/
|
||||||
echo ready
|
|
||||||
docker compose up
|
docker compose up
|
||||||
@ -1,23 +0,0 @@
|
|||||||
# Stop all tasks started by VS Code debugging
|
|
||||||
Write-Host "Stopping development tasks..."
|
|
||||||
|
|
||||||
# Find and stop processes by command line
|
|
||||||
$processes = Get-WmiObject Win32_Process | Where-Object {
|
|
||||||
($_.CommandLine -like '*proxy.cmd*') -or
|
|
||||||
($_.CommandLine -like '*npm*start*') -or
|
|
||||||
($_.CommandLine -like '*react-scripts*')
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($proc in $processes) {
|
|
||||||
Write-Host "Stopping process $($proc.ProcessId): $($proc.Name)"
|
|
||||||
Stop-Process -Id $proc.ProcessId -Force -ErrorAction SilentlyContinue
|
|
||||||
|
|
||||||
# Also stop child processes
|
|
||||||
$children = Get-WmiObject Win32_Process | Where-Object { $_.ParentProcessId -eq $proc.ProcessId }
|
|
||||||
foreach ($child in $children) {
|
|
||||||
Write-Host "Stopping child process $($child.ProcessId): $($child.Name)"
|
|
||||||
Stop-Process -Id $child.ProcessId -Force -ErrorAction SilentlyContinue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Tasks stopped"
|
|
||||||
Loading…
Reference in New Issue
Block a user