69 lines
1.6 KiB
JSON
69 lines
1.6 KiB
JSON
{
|
|
"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": []
|
|
}
|
|
]
|
|
}
|