54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Client",
|
|
"type": "shell",
|
|
"isBackground": true,
|
|
"command": "yarn",
|
|
"args": ["run", "client"],
|
|
"problemMatcher": [
|
|
{
|
|
"owner": "custom",
|
|
"pattern": { "regexp": "__________" },
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "(Compiling|Project is running)",
|
|
"endsPattern": "(?:Compiled successfully|Failed to compile)"
|
|
},
|
|
}
|
|
],
|
|
},
|
|
{
|
|
"label": "Server",
|
|
"type": "shell",
|
|
"isBackground": true,
|
|
"command": "yarn",
|
|
"args": ["run", "server", "--inspect=127.0.0.1:43000"],
|
|
"problemMatcher": [
|
|
{
|
|
"owner": "custom",
|
|
"pattern": { "regexp": "You need to restart the application" },
|
|
},
|
|
{
|
|
"owner": "custom",
|
|
"pattern": { "regexp": "__________" },
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "(Hash:|Updated modules)",
|
|
"endsPattern": "(Built at:|Update applied)"
|
|
},
|
|
},
|
|
],
|
|
},
|
|
{
|
|
"label": "Both",
|
|
"isBackground": true,
|
|
"dependsOn": [
|
|
"Client",
|
|
"Server"
|
|
],
|
|
"problemMatcher": [],
|
|
}
|
|
]
|
|
} |