forked from vitest-dev/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
204 lines (204 loc) · 6.05 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
{
"name": "vitest-explorer",
"displayName": "Vitest",
"version": "0.2.42",
"description": "Run and debug Vitest test cases",
"icon": "img/icon.png",
"preview": true,
"keywords": [
"vitest",
"test",
"typescript",
"javascript"
],
"license": "MIT",
"author": "zxch3n",
"publisher": "ZixuanChen",
"repository": {
"type": "git",
"url": "https://github.com/vitest-dev/vscode.git"
},
"bugs": {
"url": "https://github.com/vitest-dev/vscode/issues"
},
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Testing"
],
"activationEvents": [
"onCommand:vitest-explorer.configureTest",
"workspaceContains:**/vitest.config.js",
"workspaceContains:**/vite.config.js",
"workspaceContains:**/vitest.config.ts",
"workspaceContains:**/vite.config.ts",
"workspaceContains:**/package.json"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"title": "Update Snapshot",
"command": "vitest.updateSnapshot",
"category": "Vitest"
},
{
"title": "Start Watch Mode",
"command": "vitest.startWatching",
"category": "Vitest"
},
{
"title": "Stop Watch Mode",
"command": "vitest.stopWatching",
"category": "Vitest"
},
{
"title": "Toggle Watch Mode",
"command": "vitest.toggleWatching",
"category": "Vitest"
}
],
"menus": {
"commandPalette": [
{
"command": "vitest.updateSnapshot",
"when": "false"
},
{
"command": "vitest.startWatching",
"when": "false"
},
{
"command": "vitest.stopWatching",
"when": "false"
}
],
"testing/item/context": [
{
"command": "vitest.updateSnapshot"
}
]
},
"configuration": {
"title": "Vitest",
"properties": {
"vitest.enable": {
"description": "This plugin will try to detect whether the current project is set up with Vitest to activate itself. When it failed, you can enable the plugin manually.",
"type": "boolean",
"scope": "resource",
"default": false
},
"vitest.commandLine": {
"markdownDescription": "The command line to start vitest tests. **It should have with the ability to append extra arguments**. For example `npx vitest` or `yarn test --`\n\nThis is a workspace setting. Do not change it in the user setting directly, which will affect all the projects you open",
"type": "string",
"scope": "resource",
"default": ""
},
"vitest.include": {
"markdownDescription": "Include glob for test files. Default: `[\"**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}\"]`",
"type": "array",
"default": [
"**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"
],
"scope": "resource"
},
"vitest.exclude": {
"markdownDescription": "Exclude globs for test files. \nDefault: `[\"**/node_modules/**\", \"**/dist/**\", \"**/cypress/**\", \"**/.{idea,git,cache,output,temp}/**\"]`",
"type": "array",
"default": [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**"
],
"scope": "resource"
},
"vitest.debugExclude": {
"markdownDescription": "Automatically skip files covered by these glob patterns. \nDefault: `[\"<node_internals>/**\", \"**/node_modules/**\"]`",
"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": "resource"
},
"vitest.showFailMessages": {
"description": "Get instant feedback when using Watch Mode. Pop-ups an error when a test fails.",
"type": "boolean",
"scope": "window",
"default": false
},
"vitest.changeBackgroundColor": {
"description": "Change background color of status bar item on failing tests.",
"type": "boolean",
"scope": "window",
"default": true
},
"vitest.disabledWorkspaceFolders": {
"description": "Disabled workspace folders names in multiroot environment",
"type": "array",
"scope": "resource",
"default": []
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsup ./src/extension.ts --external vscode --minify",
"watch": "tsup ./src/extension.ts --external vscode --watch --sourcemap",
"test": "vitest run",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {},
"devDependencies": {
"@antfu/eslint-config": "^0.23.1",
"@babel/parser": "^7.20.15",
"@babel/types": "^7.20.7",
"@rauschma/stringio": "^1.4.0",
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.2.0",
"@types/node": "^18.11.18",
"@types/semver": "^7.3.9",
"@types/vscode": "^1.63.0",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"@vitest/ws-client": "^0.12.6",
"@vscode/test-electron": "^2.1.2",
"@vue/reactivity": "^3.2.33",
"@vueuse/core": "^8.4.2",
"eslint": "^8.9.0",
"fs-extra": "^10.0.1",
"fuse.js": "^6.6.2",
"get-port": "^6.1.2",
"glob": "^7.2.0",
"mighty-promise": "^0.0.8",
"minimatch": "^3.1.1",
"mocha": "^9.2.1",
"prettier": "^2.5.1",
"semver": "^7.3.5",
"tree-kill": "^1.2.2",
"tsup": "^5.12.7",
"typescript": "^4.9.5",
"vite": "^2.8.6",
"vitest": "latest",
"ws": "^8.6.0"
},
"lint-staged": {
"*.{js,ts,tsx,vue,md}": [
"eslint --fix"
]
}
}