Skip to content

Commit

Permalink
Add vsc tasks for eslint-watch, calva watch, test watch
Browse files Browse the repository at this point in the history
  • Loading branch information
riotrah committed Mar 28, 2022
1 parent 6335155 commit 767c3c9
Showing 1 changed file with 68 additions and 1 deletion.
69 changes: 68 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,74 @@
"kind": "build",
"isDefault": true
},
"problemMatcher": "$tsc-watch"
"problemMatcher": "$tsc-watch",
"presentation": {
"panel": "dedicated",
"group": "defaultCalva"
}
},
{
"label": "Calva Test Watch",
"type": "npm",
"script": "unit-test-watch",
"isBackground": true,
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": {
// "owner": "mocha",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": [
{
"regexp": "^not\\sok\\s\\d+\\s(.*)$"
},
{
"regexp": "\\s+(.*)$",
"message": 1
},
{
"regexp": "\\s+at\\s(.*)\\s\\((.*):(\\d+):(\\d+)\\)",
"file": 2,
"line": 3,
"column": 4
}
]
},
"presentation": {
"panel": "dedicated",
"group": "defaultCalva"
}
},
{
"label": "Calva Lint Watch",
"type": "npm",
"script": "eslint-watch",
"isBackground": true,
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": "$eslint-compact",
"presentation": {
"panel": "dedicated",
"group": "defaultCalva"
}
},
{
"label": "Calva Dev",
"group": {
"kind": "build",
"isDefault": false
},
"dependsOn": [
"Calva Watch",
"Calva Test Watch",
"Calva Lint Watch"
],
}
]
}

0 comments on commit 767c3c9

Please sign in to comment.