79 lines
1.6 KiB
JSON
79 lines
1.6 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": []
|
||
|
},
|
||
|
{
|
||
|
"type": "shell",
|
||
|
"command": "yarn",
|
||
|
"args": [
|
||
|
"run",
|
||
|
"lint"
|
||
|
],
|
||
|
"problemMatcher": [
|
||
|
"$eslint-stylish"
|
||
|
],
|
||
|
"label": "yarn run lint"
|
||
|
}
|
||
|
]
|
||
|
}
|