Compare commits
No commits in common. "55f484cf708a6e0dbb94097fd5a64fc8049165ba" and "5188570f2650d97056b2a75b83bf4ff813895a6d" have entirely different histories.
55f484cf70
...
5188570f26
47
.vscode/launch.json
vendored
47
.vscode/launch.json
vendored
@ -1,29 +1,22 @@
|
||||
{
|
||||
// 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": [
|
||||
{
|
||||
"name": "Debug React App",
|
||||
"type": "pwa-chrome",
|
||||
"request": "launch",
|
||||
"url": "http://localhost:3001",
|
||||
"webRoot": "${workspaceFolder}/src",
|
||||
"runtimeExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
|
||||
"runtimeArgs": [
|
||||
"--remote-debugging-port=9222",
|
||||
"--user-data-dir=C:\\ChromeDebug"
|
||||
],
|
||||
"preLaunchTask": "Start All",
|
||||
"postDebugTask": "Stop All Tasks"
|
||||
},
|
||||
{
|
||||
"name": "Attach to Chrome",
|
||||
"type": "pwa-chrome",
|
||||
"request": "attach",
|
||||
"port": 9222,
|
||||
"webRoot": "${workspaceFolder}/src"
|
||||
}
|
||||
]
|
||||
// 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": [
|
||||
{
|
||||
"name": "Launch Chrome",
|
||||
"request": "launch",
|
||||
"type": "chrome",
|
||||
"url": "http://localhost:3000",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"type": "pwa-chrome",
|
||||
"request": "launch",
|
||||
"name": "Launch Chrome against localhost",
|
||||
"url": "http://localhost:3000",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
}
|
||||
]
|
||||
}
|
||||
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,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