This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
213 lines (213 loc) · 6.55 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
{
"name": "vitest-lab",
"displayName": "Vitest Lab",
"version": "0.3.0",
"description": "Run and debug Vitest test cases",
"icon": "img/icon.png",
"preview": true,
"keywords": [
"vitest",
"test",
"typescript",
"javascript"
],
"license": "MIT",
"author": "zxch3n",
"publisher": "milan-kovacic",
"repository": {
"type": "git",
"url": "https://github.com/MilanKovacic/vitest-visual-studio-code-extension.git"
},
"bugs": {
"url": "https://github.com/MilanKovacic/vitest-visual-studio-code-extension/issues"
},
"engines": {
"vscode": "^1.85.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": "npm run compile",
"compile": "tsup ./src/extension.ts --external vscode,lightningcss,esbuild --minify",
"watch": "tsup ./src/extension.ts --external vscode,lightningcss,esbuild --watch --sourcemap",
"test": "vitest run",
"lint:check": "eslint .",
"lint:fix": "eslint . --fix",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write ."
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.2",
"@babel/parser": "^7.23.6",
"@babel/types": "^7.23.6",
"@rauschma/stringio": "^1.4.0",
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/node": "^20.11.4",
"@types/semver": "^7.5.6",
"@types/vscode": "^1.85.0",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitest/ws-client": "^1.2.0",
"@vscode/test-electron": "^2.3.8",
"@vue/reactivity": "^3.4.14",
"@vueuse/core": "^10.7.2",
"eslint": "^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-tsdoc": "^0.2.17",
"eslint-plugin-unicorn": "^50.0.1",
"fs-extra": "^11.2.0",
"fuse.js": "^7.0.0",
"get-port": "^7.0.0",
"glob": "^10.3.10",
"mighty-promise": "^0.0.10",
"minimatch": "^9.0.3",
"mocha": "^10.2.0",
"prettier": "^3.2.2",
"semver": "^7.5.4",
"tree-kill": "^1.2.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "^5.0.11",
"vitest": "latest",
"ws": "^8.16.0"
},
"lint-staged": {
"*.{js,ts,tsx,vue,md}": [
"eslint --fix"
]
}
}