Skip to content

Commit f384965

Browse files
committed
Add VSCode tasks
1 parent 83728f6 commit f384965

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

.vscode/tasks.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"label": "Unit Tests",
7+
"type": "npm",
8+
"script": "test",
9+
"isBackground": true,
10+
"icon": { "color": "terminal.ansiCyan", "id": "symbol-unit" },
11+
"problemMatcher": {
12+
"owner": "typescript",
13+
"pattern": "$tsc",
14+
"background": {
15+
"activeOnStart": true,
16+
"beginsPattern": {
17+
"regexp": "(.*?)"
18+
},
19+
"endsPattern": {
20+
"regexp": "bundle generation complete"
21+
}
22+
}
23+
}
24+
},
25+
{
26+
"label": "Unit Tests + Coverage",
27+
"type": "npm",
28+
"script": "test:coverage",
29+
"isBackground": true,
30+
"icon": { "color": "terminal.ansiCyan", "id": "symbol-method" },
31+
"problemMatcher": {
32+
"owner": "typescript",
33+
"pattern": "$tsc",
34+
"background": {
35+
"activeOnStart": true,
36+
"beginsPattern": {
37+
"regexp": "(.*?)"
38+
},
39+
"endsPattern": {
40+
"regexp": "bundle generation complete"
41+
}
42+
}
43+
}
44+
},
45+
{
46+
"label": "Lint",
47+
"type": "npm",
48+
"script": "lint",
49+
"isBackground": true,
50+
"icon": { "color": "terminal.ansiYellow", "id": "check-all" },
51+
"problemMatcher": {
52+
"owner": "typescript",
53+
"pattern": "$tsc",
54+
"background": {
55+
"activeOnStart": true,
56+
"beginsPattern": {
57+
"regexp": "(.*?)"
58+
},
59+
"endsPattern": {
60+
"regexp": "bundle generation complete"
61+
}
62+
}
63+
}
64+
}
65+
]
66+
}

0 commit comments

Comments
 (0)