Skip to content

Commit 40b47e6

Browse files
committed
dev: Add VSCode tasks for common dev commands
Add VSCode tasks to execute root commands: - build and build examples app - test - clean - lint and lint fix
1 parent 05fb230 commit 40b47e6

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ stats.html
1111
.vscode/*
1212
!.vscode/extensions.json
1313
!.vscode/settings.json
14+
!.vscode/tasks.json
1415

1516
.coveralls.yml
1617
packages/examples-react/build

.vscode/tasks.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Build",
6+
"type": "shell",
7+
"command": "pnpm",
8+
"args": ["run", "build"],
9+
"group": {
10+
"kind": "build",
11+
"isDefault": true
12+
},
13+
"problemMatcher": ["$tsc"],
14+
"presentation": {
15+
"reveal": "always",
16+
"panel": "shared"
17+
}
18+
},
19+
{
20+
"label": "Test",
21+
"type": "shell",
22+
"command": "pnpm",
23+
"args": ["run", "test"],
24+
"group": "test",
25+
"problemMatcher": [],
26+
"presentation": {
27+
"reveal": "always",
28+
"panel": "shared"
29+
}
30+
},
31+
{
32+
"label": "Lint",
33+
"type": "shell",
34+
"command": "pnpm",
35+
"args": ["run", "lint"],
36+
"group": "none",
37+
"problemMatcher": ["$eslint-stylish"],
38+
"presentation": {
39+
"reveal": "always",
40+
"panel": "shared"
41+
}
42+
},
43+
{
44+
"label": "Build Examples App",
45+
"type": "shell",
46+
"command": "pnpm",
47+
"args": ["run", "build:examples-app"],
48+
"group": "build",
49+
"problemMatcher": ["$tsc"],
50+
"presentation": {
51+
"reveal": "always",
52+
"panel": "shared"
53+
}
54+
},
55+
{
56+
"label": "Lint Fix",
57+
"type": "shell",
58+
"command": "pnpm",
59+
"args": ["run", "lint:fix"],
60+
"group": "none",
61+
"problemMatcher": ["$eslint-stylish"],
62+
"presentation": {
63+
"reveal": "always",
64+
"panel": "shared"
65+
}
66+
},
67+
{
68+
"label": "Clean",
69+
"type": "shell",
70+
"command": "pnpm",
71+
"args": ["run", "clean"],
72+
"group": "none",
73+
"problemMatcher": [],
74+
"presentation": {
75+
"reveal": "always",
76+
"panel": "shared"
77+
}
78+
}
79+
]
80+
}

0 commit comments

Comments
 (0)