-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
package.json
293 lines (293 loc) · 9.87 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
{
"publisher": "vitest",
"name": "explorer",
"displayName": "Vitest",
"version": "1.8.2",
"packageManager": "[email protected]",
"description": "A Vite-native testing framework. It's fast!",
"author": "Vitest Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/vitest-dev/vscode.git"
},
"bugs": {
"url": "https://github.com/vitest-dev/vscode/issues"
},
"sponsor": {
"url": "https://opencollective.com/vitest"
},
"keywords": [
"vitest",
"test",
"typescript",
"javascript"
],
"categories": [
"Testing"
],
"main": "./dist/extension.js",
"icon": "img/icon.png",
"pricing": "Free",
"engines": {
"vscode": "^1.77.0"
},
"activationEvents": [
"workspaceContains:**/*{vite,vitest}*.config*.{ts,js,mjs,cjs,cts,mts}",
"workspaceContains:**/*vitest.{workspace,projects}*.{ts,js,mjs,cjs,cts,mts,json}",
"workspaceContains:node_modules/.bin/vitest"
],
"contributes": {
"languages": [
{
"id": "vitest-snapshot",
"aliases": [
"Vitest Snapshot"
],
"extensions": [
".js.snap",
".jsx.snap",
".ts.snap",
".tsx.snap"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "vitest-snapshot",
"scopeName": "source.vitest.snap",
"path": "./syntaxes/vitest-snapshot.tmLanguage"
}
],
"commands": [
{
"title": "Update Snapshot",
"command": "vitest.updateSnapshot",
"category": "Vitest"
},
{
"title": "Show Output Channel",
"command": "vitest.openOutput",
"category": "Vitest"
},
{
"title": "Show Shell Terminal",
"command": "vitest.showShellTerminal",
"category": "Vitest"
},
{
"title": "Reveal in Test Explorer",
"command": "vitest.revealInTestExplorer",
"category": "Vitest"
}
],
"menus": {
"editor/title/context": [
{
"command": "vitest.revealInTestExplorer",
"when": "vitest.testFiles && resourcePath in vitest.testFiles"
}
],
"commandPalette": [
{
"command": "vitest.updateSnapshot",
"when": "false"
}
],
"testing/item/context": [
{
"command": "vitest.updateSnapshot",
"when": "controllerId == 'vitest'"
}
],
"testing/item/gutter": [
{
"command": "vitest.updateSnapshot",
"when": "controllerId == 'vitest'"
}
]
},
"configuration": {
"title": "Vitest",
"properties": {
"vitest.filesWatcherInclude": {
"markdownDescription": "The glob pattern to watch for file changes.",
"type": "string",
"default": "**/*",
"scope": "resource"
},
"vitest.vitestPackagePath": {
"markdownDescription": "The path to the `package.json` file of Vitest executable (it's usually inside `node_modules`) in case the extension cannot find it.",
"type": "string",
"scope": "resource"
},
"vitest.nodeExecutable": {
"markdownDescription": "The path to the Node.js executable. If not assigned, tries to find Node.js path via a PATH variable or a `which` command. This is applied only when `vitest.shellType` is `child_process` (the default).",
"type": "string",
"scope": "window"
},
"vitest.nodeExecArgs": {
"description": "The arguments to pass to the Node.js executable. This is applied only when `vitest.shellType` is `child_process` (the default).",
"type": "array",
"scope": "resource"
},
"vitest.workspaceConfig": {
"markdownDescription": "The path to the Vitest [workspace configuration file](https://vitest.dev/guide/workspace). The extension supports only a single file per VSCode workspace.",
"type": "string",
"scope": "window"
},
"vitest.rootConfig": {
"markdownDescription": "The path to the Vitest [root configuration file](https://vitest.dev/config/). The extension supports only a single root file per VSCode workspace. If you have several Vitest configs, consider using a [Vitest workspace](https://vitest.dev/guide/workspace) instead for better performance.",
"type": "string",
"scope": "window"
},
"vitest.configSearchPatternExclude": {
"markdownDescription": "A VSCode [glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns) to exclude files from the search for Vitest config files. This pattern affects both workspace and regular config files.",
"type": "string",
"default": "{**/node_modules/**,**/.*/**,**/*.d.ts}",
"scope": "window"
},
"vitest.debuggerAddress": {
"description": "TCP/IP address of process to be debugged. Default: localhost",
"type": "string",
"scope": "window"
},
"vitest.debuggerPort": {
"description": "Port that the debugger will be attached to. By default uses 9229 or tries to find a free port if it's not available.",
"type": "string",
"scope": "window"
},
"vitest.disableWorkspaceWarning": {
"markdownDescription": "Disable a warning about too many config files that recommends creating a single `vitest.workspace.js` file.",
"type": "boolean",
"default": false,
"scope": "resource"
},
"vitest.maximumConfigs": {
"description": "The maximum amount of configs that Vitest extension can load. If exceeded, the extension will show a warning suggesting to use a workspace config file.",
"type": "number",
"default": 3,
"scope": "window"
},
"vitest.debugExclude": {
"markdownDescription": "Automatically skip files covered by these glob patterns.",
"type": "array",
"default": [
"<node_internals>/**",
"**/node_modules/**"
],
"scope": "resource"
},
"vitest.nodeEnv": {
"markdownDescription": "The env passed to runner process in addition to `process.env`",
"type": [
"object",
"null"
],
"default": null,
"scope": "window"
},
"vitest.logLevel": {
"description": "The log level of the Vitest extension.",
"type": "string",
"enum": [
"info",
"debug",
"verbose"
],
"default": "verbose",
"scope": "resource"
},
"vitest.shellType": {
"markdownDescription": "The method the extension uses to spawn a long-running Vitest process. This is particularly useful if you are using a custom shell script to set up the environment. When using the `terminal` shell type, the websocket connection will be established.",
"type": "string",
"enum": [
"terminal",
"child_process"
],
"default": "child_process",
"scope": "resource"
},
"vitest.terminalShellPath": {
"markdownDescription": "The path to the shell executable. This is applied only when `vitest.shellType` is `terminal`.",
"type": "string",
"scope": "resource"
},
"vitest.terminalShellArgs": {
"markdownDescription": "The arguments to pass to the shell executable. This is applied only when `vitest.shellType` is `terminal`.",
"type": "array",
"scope": "resource"
},
"vitest.experimentalStaticAstCollect": {
"markdownDescription": "Enable static AST analysis for faster test discovery. This feature is experimental and may not work with all projects.",
"type": "boolean",
"default": false,
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "pnpm build",
"release": "tsx ./scripts/release.mts && git update-ref refs/heads/release refs/heads/main && git push origin release",
"build": "tsup --minify --clean",
"package": "vsce package --no-dependencies",
"dev": "EXTENSION_NODE_ENV=dev tsup --watch --sourcemap",
"test": "vscode-test",
"test:watch": "vscode-test --watch-files src/**/*.ts --watch-files test/**/*.test.ts",
"test-e2e": "vitest --root test-e2e",
"ecosystem-ci:build": "pnpm build",
"ecosystem-ci:test": "tsx ./scripts/ecosystem-ci.mts",
"typecheck": "tsc -b ./ ./test ./test-e2e",
"lint": "eslint --cache .",
"lint:fix": "eslint --cache --fix ."
},
"devDependencies": {
"@antfu/eslint-config": "^2.23.2",
"@playwright/test": "^1.42.1",
"@types/micromatch": "^4.0.6",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.8",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.3.9",
"@types/vscode": "^1.77.0",
"@types/which": "^3.0.3",
"@types/ws": "^8.5.10",
"@vitest/runner": "^2.1.2",
"@vitest/utils": "^2.1.2",
"@vscode/test-cli": "^0.0.6",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^3.1.0",
"@vue/reactivity": "^3.2.33",
"acorn": "^8.12.0",
"acorn-walk": "^8.3.3",
"birpc": "^0.2.19",
"bumpp": "^9.3.0",
"chai": "^5.1.0",
"changelogithub": "^0.13.3",
"eslint": "^9.7.0",
"execa": "^8.0.1",
"find-up": "^7.0.0",
"get-port": "^6.1.2",
"istanbul-to-vscode": "^2.1.0",
"micromatch": "^4.0.5",
"mighty-promise": "^0.0.8",
"mocha": "^10.3.0",
"pathe": "^1.1.2",
"picocolors": "^1.0.0",
"prompts": "^2.4.2",
"semver": "^7.3.5",
"tsup": "^8.0.1",
"tsx": "^4.7.1",
"typescript": "^5.6.2",
"vitest": "^2.1.2",
"which": "^4.0.0",
"ws": "^8.16.0"
},
"lint-staged": {
"*.{js,ts,tsx,vue,md}": [
"eslint --fix"
]
}
}