-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathpackage.json
198 lines (198 loc) · 5.7 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
{
"name": "vscode-phpunit",
"description": "PHPUnit Test Explorer for VSCode",
"displayName": "PHPUnit Test Explorer",
"icon": "img/icon.png",
"publisher": "recca0120",
"version": "3.5.16",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/recca0120/vscode-phpunit"
},
"engines": {
"vscode": "^1.88.0"
},
"categories": [
"Testing",
"Other",
"Debuggers"
],
"keywords": [
"php",
"phpunit",
"pest",
"test"
],
"activationEvents": [
"workspaceContains:**/*.php"
],
"contributes": {
"languages": [
{
"id": "phpunit",
"aliases": [
"PHPUnit",
"phpunit"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "phpunit",
"scopeName": "source.phpunit",
"path": "./syntaxes/phpunit.tmLanguage.json"
}
],
"commands": [
{
"command": "phpunit.reload",
"title": "PHPUnit: Reload tests"
},
{
"command": "phpunit.run-all",
"title": "PHPUnit: Run all tests"
},
{
"command": "phpunit.run-file",
"title": "PHPUnit: Run tests in current file"
},
{
"command": "phpunit.run-test-at-cursor",
"title": "PHPUnit: Run the test at the current cursor position"
},
{
"command": "phpunit.rerun",
"title": "PHPUnit: Repeat the last test run"
}
],
"keybindings": [
{
"key": "cmd+t cmd+s",
"command": "phpunit.run-all"
},
{
"key": "cmd+t cmd+f",
"command": "phpunit.run-file",
"when": "editorTextFocus && editorLangId == php"
},
{
"key": "cmd+t cmd+t",
"command": "phpunit.run-test-at-cursor",
"when": "editorTextFocus && editorLangId == php"
},
{
"key": "cmd+t cmd+l",
"command": "phpunit.rerun",
"when": "editorTextFocus && editorLangId == php"
}
],
"configuration": {
"type": "object",
"title": "PHPUnit Configuration",
"properties": {
"phpunit.php": {
"type": "string",
"description": "Absolute path to php. Fallback to global php if it exists on the command line.",
"default": "php"
},
"phpunit.phpunit": {
"type": "string",
"description": "Path to phpunit. Can be the phpunit file or phpunit.phar.\n\nAutomatically finds it in common places:\n - Composer vendor directory\n - phpunit.phar in your project\n - phpunit (or phpunit.bat for windows) globally on the command line",
"default": "vendor/bin/phpunit"
},
"phpunit.command": {
"type": "string",
"description": "Custom command to run. Ex: `docker exec -t container_name`.",
"default": null
},
"phpunit.args": {
"type": "array",
"default": [],
"description": "Any phpunit args (phpunit --help) E.g. --configuration ${workspaceFolder}/phpunit.xml.dist"
},
"phpunit.paths": {
"type": "object",
"description": "Path mappings for your virtual/remote environments. Ex: { \"local/workspace/folder\": \"docker/workspace/folder\" }"
},
"phpunit.environment": {
"type": "object",
"title": "Set environment variables before running the phpunit command"
},
"phpunit.clearOutputOnRun": {
"type": "boolean",
"default": true,
"description": "True will clear the output when we run a new test. False will leave the output after every test."
},
"phpunit.showAfterExecution": {
"type": "string",
"enum": [
"always",
"onFailure",
"never"
],
"default": "onFailure",
"description": "Specify if the test report will automatically be shown after execution",
"scope": "application"
}
}
}
},
"main": "./dist/extension.js",
"prettier": {
"printWidth": 100,
"singleQuote": true,
"tabWidth": 4,
"useTabs": false
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src -c eslint.config.mjs --ignore-pattern '**/phpunit'",
"test": "node ./out/test/runTest.js ",
"jest": "jest",
"jest:watch": "jest --watch-all",
"download-api": "npx vscode-dts main && npx vscode-dts dev",
"postinstall": "npm run download-api"
},
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.14",
"@types/mocha": "^10.0.9",
"@types/node": "^20",
"@types/semver": "^7.5.8",
"@types/sinon": "^17.0.3",
"@types/yargs-parser": "^21.0.3",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vscode/dts": "^0.4.1",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.1",
"chai": "^5.1.2",
"eslint": "^9.16.0",
"fast-xml-parser": "^4.5.0",
"glob": "^11.0.0",
"minimatch": "^10.0.1",
"mocha": "^10.2.0",
"php-parser": "^3.2.1",
"semi": "^4.0.5",
"semver": "^7.6.3",
"sinon": "^19.0.2",
"string-argv": "^0.3.2",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"typescript": "^5.7.2",
"vscode-uri": "^3.0.8",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4",
"yargs-parser": "^21.1.1"
}
}