Skip to content

Commit 767c3c9

Browse files
committed
Add vsc tasks for eslint-watch, calva watch, test watch
1 parent 6335155 commit 767c3c9

1 file changed

Lines changed: 68 additions & 1 deletion

File tree

.vscode/tasks.json

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,74 @@
1212
"kind": "build",
1313
"isDefault": true
1414
},
15-
"problemMatcher": "$tsc-watch"
15+
"problemMatcher": "$tsc-watch",
16+
"presentation": {
17+
"panel": "dedicated",
18+
"group": "defaultCalva"
19+
}
20+
},
21+
{
22+
"label": "Calva Test Watch",
23+
"type": "npm",
24+
"script": "unit-test-watch",
25+
"isBackground": true,
26+
"group": {
27+
"kind": "test",
28+
"isDefault": true
29+
},
30+
"problemMatcher": {
31+
// "owner": "mocha",
32+
"fileLocation": [
33+
"relative",
34+
"${workspaceRoot}"
35+
],
36+
"pattern": [
37+
{
38+
"regexp": "^not\\sok\\s\\d+\\s(.*)$"
39+
},
40+
{
41+
"regexp": "\\s+(.*)$",
42+
"message": 1
43+
},
44+
{
45+
"regexp": "\\s+at\\s(.*)\\s\\((.*):(\\d+):(\\d+)\\)",
46+
"file": 2,
47+
"line": 3,
48+
"column": 4
49+
}
50+
]
51+
},
52+
"presentation": {
53+
"panel": "dedicated",
54+
"group": "defaultCalva"
55+
}
56+
},
57+
{
58+
"label": "Calva Lint Watch",
59+
"type": "npm",
60+
"script": "eslint-watch",
61+
"isBackground": true,
62+
"group": {
63+
"kind": "build",
64+
"isDefault": false
65+
},
66+
"problemMatcher": "$eslint-compact",
67+
"presentation": {
68+
"panel": "dedicated",
69+
"group": "defaultCalva"
70+
}
71+
},
72+
{
73+
"label": "Calva Dev",
74+
"group": {
75+
"kind": "build",
76+
"isDefault": false
77+
},
78+
"dependsOn": [
79+
"Calva Watch",
80+
"Calva Test Watch",
81+
"Calva Lint Watch"
82+
],
1683
}
1784
]
1885
}

0 commit comments

Comments
 (0)