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

@@ -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