|
18 | 18 | "label": "Generate grammar", |
19 | 19 | "type": "npm", |
20 | 20 | "script": "generate-grammar", |
| 21 | + "group": "build", |
21 | 22 | "presentation": { |
22 | 23 | "reveal": "silent" |
23 | | - }, |
24 | | - "group": "build" |
| 24 | + } |
25 | 25 | }, |
26 | 26 |
|
27 | 27 | // Generic test tasks |
|
30 | 30 | "type": "npm", |
31 | 31 | "script": "generate-test-subset-file-strict", |
32 | 32 | "path": "packages/test-harness", |
| 33 | + "group": "test", |
33 | 34 | "presentation": { |
34 | 35 | "reveal": "silent" |
35 | | - }, |
36 | | - "group": "test" |
| 36 | + } |
37 | 37 | }, |
38 | 38 | { |
39 | 39 | "label": "Generate test subset file", |
40 | 40 | "type": "npm", |
41 | 41 | "script": "generate-test-subset-file", |
42 | 42 | "path": "packages/test-harness", |
| 43 | + "group": "none", |
43 | 44 | "presentation": { |
44 | 45 | "reveal": "silent" |
45 | | - }, |
46 | | - "group": "none", |
47 | | - "problemMatcher": [] |
| 46 | + } |
48 | 47 | }, |
49 | 48 |
|
50 | 49 | // VSCode tasks |
51 | 50 | { |
52 | 51 | "label": "VSCode: Build extension", |
53 | | - "dependsOn": ["VSCode: Populate dist", "VSCode: ESBuild"], |
54 | | - "group": "build" |
| 52 | + "type": "npm", |
| 53 | + "script": "dev", |
| 54 | + "path": "packages/cursorless-vscode", |
| 55 | + "group": "build", |
| 56 | + "presentation": { |
| 57 | + "reveal": "silent" |
| 58 | + } |
55 | 59 | }, |
56 | 60 | { |
57 | 61 | "label": "VSCode: Build extension and tests", |
58 | | - "dependsOn": ["VSCode: Build extension", "TSBuild", "Build test harness"], |
| 62 | + "dependsOn": ["VSCode: Build extension", "Build test harness"], |
59 | 63 | "group": { |
60 | 64 | "kind": "build", |
61 | 65 | "isDefault": true |
62 | 66 | } |
63 | 67 | }, |
64 | | - { |
65 | | - "label": "VSCode: ESBuild", |
66 | | - "type": "npm", |
67 | | - "script": "bundle:dev", |
68 | | - "path": "packages/cursorless-vscode", |
69 | | - "dependsOn": ["Generate grammar"], |
70 | | - "presentation": { |
71 | | - "reveal": "silent" |
72 | | - }, |
73 | | - "group": "build" |
74 | | - }, |
75 | | - { |
76 | | - "label": "VSCode: Populate dist", |
77 | | - "type": "npm", |
78 | | - "script": "populate-dist", |
79 | | - "path": "packages/cursorless-vscode", |
80 | | - "dependsOn": ["VSCode: Build tutorial webview"], |
81 | | - "presentation": { |
82 | | - "reveal": "silent" |
83 | | - }, |
84 | | - "group": "build" |
85 | | - }, |
86 | | - { |
87 | | - "label": "VSCode: Build tutorial webview", |
88 | | - "type": "npm", |
89 | | - "script": "bundle:dev", |
90 | | - "path": "packages/cursorless-vscode-tutorial-webview", |
91 | | - "presentation": { |
92 | | - "reveal": "silent" |
93 | | - }, |
94 | | - "group": "build" |
95 | | - }, |
96 | | - { |
97 | | - "label": "VSCode: Watch tutorial", |
98 | | - "type": "npm", |
99 | | - "script": "bundle:watch", |
100 | | - "isBackground": true, |
101 | | - "presentation": { |
102 | | - "reveal": "never" |
103 | | - }, |
104 | | - "path": "packages/cursorless-vscode-tutorial-webview", |
105 | | - "group": "build" |
106 | | - }, |
107 | 68 | { |
108 | 69 | "label": "VSCode: Prepare test subset", |
| 70 | + "group": "test", |
| 71 | + "dependsOrder": "sequence", |
109 | 72 | "dependsOn": [ |
110 | 73 | "Ensure test subset file exists", |
111 | 74 | "VSCode: Build extension and tests" |
112 | | - ], |
113 | | - "dependsOrder": "sequence", |
114 | | - "group": "test" |
| 75 | + ] |
115 | 76 | }, |
116 | 77 |
|
117 | 78 | // Neovim tasks |
118 | 79 | { |
119 | 80 | "label": "Neovim: Build extension", |
120 | | - "dependsOn": [ |
121 | | - "Neovim: Launch neovim", |
122 | | - "Neovim: ESBuild", |
123 | | - "Neovim: Populate dist" |
124 | | - ], |
125 | | - "group": "build" |
| 81 | + "group": "build", |
| 82 | + "dependsOn": ["Neovim: Launch neovim", "Neovim: ESBuild"] |
126 | 83 | }, |
127 | 84 | { |
128 | 85 | "label": "Neovim: Build extension and tests", |
| 86 | + "group": "build", |
129 | 87 | "dependsOn": [ |
130 | 88 | "Neovim: Launch neovim (test)", |
131 | 89 | "Neovim: ESBuild", |
132 | | - "Neovim: Populate dist", |
133 | | - "TSBuild", |
134 | 90 | "Build test harness" |
135 | | - ], |
136 | | - "group": "build" |
| 91 | + ] |
137 | 92 | }, |
138 | 93 | { |
139 | 94 | "label": "Neovim: ESBuild", |
140 | 95 | "type": "npm", |
141 | | - "script": "bundle:dev", |
| 96 | + "script": "dev", |
142 | 97 | "path": "packages/cursorless-neovim", |
143 | 98 | "dependsOn": ["Generate grammar"], |
| 99 | + "group": "build", |
144 | 100 | "presentation": { |
145 | 101 | "reveal": "silent" |
146 | | - }, |
147 | | - "group": "build" |
148 | | - }, |
149 | | - { |
150 | | - "label": "Neovim: Populate dist", |
151 | | - "type": "npm", |
152 | | - "script": "populate-dist", |
153 | | - "path": "packages/cursorless-neovim", |
154 | | - "presentation": { |
155 | | - "reveal": "silent" |
156 | | - }, |
157 | | - "options": { |
158 | | - "env": { |
159 | | - "CURSORLESS_REPO_ROOT": "${workspaceFolder}" |
160 | | - } |
161 | | - }, |
162 | | - "group": "build" |
| 102 | + } |
163 | 103 | }, |
164 | 104 | { |
165 | 105 | "label": "Neovim: Launch neovim", |
|
263 | 203 | // cursorless.org |
264 | 204 | { |
265 | 205 | "label": "Serve cursorless.org", |
266 | | - "type": "shell", |
267 | | - "command": "nx serve cursorless-org", |
268 | | - "options": { |
269 | | - "cwd": "cursorless-nx" |
270 | | - }, |
271 | | - "problemMatcher": [] |
| 206 | + "type": "npm", |
| 207 | + "script": "dev", |
| 208 | + "path": "packages/cursorless-org" |
272 | 209 | }, |
273 | 210 | { |
274 | 211 | "label": "Install local", |
275 | 212 | "type": "npm", |
276 | | - "path": "packages/cursorless-vscode", |
277 | 213 | "script": "install-local", |
278 | | - "problemMatcher": [] |
| 214 | + "path": "packages/cursorless-vscode" |
279 | 215 | }, |
280 | 216 | { |
281 | 217 | "label": "Uninstall local", |
282 | 218 | "type": "npm", |
283 | | - "path": "packages/cursorless-vscode", |
284 | 219 | "script": "uninstall-local", |
285 | | - "problemMatcher": [] |
| 220 | + "path": "packages/cursorless-vscode" |
286 | 221 | }, |
287 | 222 | { |
288 | 223 | "label": "Run pre commit", |
289 | 224 | "type": "shell", |
290 | | - "command": "pre-commit run", |
291 | | - "presentation": {} |
| 225 | + "command": "pre-commit run" |
292 | 226 | } |
293 | 227 | ] |
294 | 228 | } |
0 commit comments