Added problem matchers

This commit is contained in:
Davide Passoni 2024-02-19 16:45:55 +01:00
parent 6373fd300d
commit 39c28ffb04
5 changed files with 38 additions and 12 deletions

View File

@ -1,8 +1,10 @@
@echo off
echo check_setup starting...
if exist "setup" (
echo setup.bat has already been called, skipping...
) else (
echo setup.bat has not been called yet, installing!
call .\setup.bat
)
)
echo check_setup completed!

View File

@ -3,12 +3,28 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "check-setup",
"type": "shell",
"command": "cd .. ; ./check_setup.bat",
"isBackground": false
},
{
"label": "demo-server",
"type": "shell",
"command": "./scripts/demo-server.bat",
"args": ["${input:enterDir}/Config/olympus.json"],
"isBackground": true
"isBackground": true,
"dependsOn": ["check-setup"],
"problemMatcher":{
"owner": "custom",
"base": "$tsc-watch",
"background": {
"activeOnStart": true,
"beginsPattern": "Please wait",
"endsPattern": "Waiting for connections..."
}
}
}
],
"inputs": [

View File

@ -1,7 +1,3 @@
cd ..
call .\check_setup.bat
cd server
call .\scripts\copy.bat
call .\scripts\create-mock-dcs.bat
node .\bin\demo --config %1

View File

@ -3,11 +3,27 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "check-setup",
"type": "shell",
"command": "cd .. ; ./check_setup.bat",
"isBackground": false
},
{
"label": "watch",
"type": "shell",
"command": "./scripts/watch.bat",
"isBackground": true
"isBackground": true,
"problemMatcher":{
"owner": "custom",
"base": "$tsc-watch",
"background": {
"activeOnStart": true,
"beginsPattern": "watchify",
"endsPattern": "bytes written"
}
},
"dependsOn": ["check-setup"]
}
]
}

View File

@ -1,5 +1 @@
cd ..
call .\check_setup.bat
cd website
watchify .\src\index.ts --debug -o ..\server\public\javascripts\bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ]
watchify .\src\index.ts --debug -o ..\server\public\javascripts\bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ] -v