-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
226 lines (226 loc) · 7.26 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
{
"name": "turbo-print-log",
"displayName": "Turbo Console Log for more language",
"description": "选中变量,根据不同语言增加一行变量打印日志",
"version": "3.0.9",
"publisher": "ygqygq2",
"engines": {
"vscode": "^1.88.0"
},
"icon": "images/icon.png",
"categories": [
"Debuggers",
"Testing",
"Other"
],
"keywords": [
"debuggers",
"testing"
],
"activationEvents": [
"onLanguage"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Turbo Console Log Configuration",
"properties": {
"turboConsoleLog.wrapLogMessage": {
"type": "boolean",
"default": false,
"description": "Determine if the log message should be wrapped or not."
},
"turboConsoleLog.logMessagePrefix": {
"type": "string",
"default": "🚀",
"description": "The prefix of the log message."
},
"turboConsoleLog.logMessageSuffix": {
"type": "string",
"default": ":",
"description": "The suffix of the log message."
},
"turboConsoleLog.includeFileNameAndLineNum": {
"type": "boolean",
"default": true,
"description": "Whether to include the file name and the line number of the log message."
},
"turboConsoleLog.addSemicolonInTheEnd": {
"type": "boolean",
"default": false,
"description": "Whether to add or not a semicolon in the end of the log message."
},
"turboConsoleLog.insertEmptyLineBeforeLogMessage": {
"type": "boolean",
"default": false,
"description": "Whether to insert an empty line before the log message or not."
},
"turboConsoleLog.insertEmptyLineAfterLogMessage": {
"type": "boolean",
"default": false,
"description": "Whether to insert an empty line after the log message or not."
},
"turboConsoleLog.delimiterInsideMessage": {
"type": "string",
"default": "~",
"description": "The delimiter that will separate the different log message elements (file name, line number, class, function and variable)"
},
"turboConsoleLog.quote": {
"type": "string",
"enum": [
"\"",
"'",
"`"
],
"default": "\"",
"description": "Double quotes, single quotes or backtick"
},
"turboConsoleLog.logFunction": {
"type": "object",
"default": {
"php": "echo"
},
"description": "Specify log function for language"
}
}
},
"commands": [
{
"command": "turboConsoleLog.displayLogMessage",
"title": "Turbo Console Log: Display Log Message"
},
{
"command": "turboConsoleLog.updateLineNumAllLogMessages",
"title": "Turbo Console Log: Update Line Number for All Log Messages"
},
{
"command": "turboConsoleLog.commentAllLogMessages",
"title": "Turbo Console Log: Comment All Log Messages"
},
{
"command": "turboConsoleLog.uncommentAllLogMessages",
"title": "Turbo Console Log: Uncomment All Log Messages"
},
{
"command": "turboConsoleLog.deleteAllLogMessages",
"title": "Turbo Console Log: Delete All Log Messages"
}
],
"keybindings": [
{
"command": "turboConsoleLog.displayLogMessage",
"key": "ctrl+alt+l",
"mac": "ctrl+alt+l",
"when": "editorTextFocus"
},
{
"command": "turboConsoleLog.updateLineNumAllLogMessages",
"key": "ctrl+alt+u",
"mac": "ctrl+alt+u",
"when": "editorTextFocus"
},
{
"command": "turboConsoleLog.commentAllLogMessages",
"key": "alt+shift+c",
"mac": "alt+shift+c",
"when": "editorTextFocus"
},
{
"command": "turboConsoleLog.uncommentAllLogMessages",
"key": "alt+shift+u",
"mac": "alt+shift+u",
"when": "editorTextFocus"
},
{
"command": "turboConsoleLog.deleteAllLogMessages",
"key": "alt+shift+d",
"mac": "alt+shift+d",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run clean && npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"watch": "npm run esbuild --watch",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src ",
"lint-fix": "eslint --fix src",
"compile": "npm run esbuild-base -- --sourcemap",
"package": "vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies",
"clean": "rimraf out/",
"test-compile": "npm run clean && tsc -p tsconfig.mocha.json && npm run compile",
"test": "cross-env TS_NODE_PROJECT=tsconfig.mocha.json vscode-test",
"test-grep": "cross-env TS_NODE_PROJECT=tsconfig.mocha.json vscode-test -f",
"test:suite:mocha": "cross-env TS_NODE_PROJECT=tsconfig.mocha.json npm run test-compile && node out/test/runTests.js",
"test:suite": "vitest suite --watch=false",
"test:unit": "vitest unit --watch=false",
"test:coverage": "vitest run --coverage",
"prepush": "pnpm run lint",
"postinstall": "simple-git-hooks",
"preinstall": "npx only-allow pnpm"
},
"devDependencies": {
"@eslint/js": "^9.1.1",
"@types/chai": "^4.3.14",
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/lodash": "^4.17.0",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.7",
"@types/sinon": "^17.0.3",
"@types/tmp": "^0.2.6",
"@types/vscode": "^1.88.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vitest/coverage-v8": "^1.5.2",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.3.9",
"cross-env": "^7.0.3",
"esbuild": "^0.20.2",
"eslint": "^9.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^12.1.0",
"expect-type": "^0.19.0",
"fs-extra": "^11.2.0",
"glob": "^10.3.12",
"jest-mock-vscode": "^3.0.2",
"lint-staged": "^15.2.2",
"lodash": "^4.17.21",
"mocha": "^10.4.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.11.1",
"sinon": "^17.0.1",
"tmp": "^0.2.3",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1",
"vite": "^5.2.10",
"vitest": "^1.5.2"
},
"license": "SEE LICENSE IN LICENSE.txt",
"bugs": {
"url": "https://github.com/ygqygq2/turbo-console-log/issues",
"email": "ygqygq2@qq.com"
},
"repository": {
"type": "git",
"url": "https://github.com/ygqygq2/turbo-console-log"
},
"__metadata": {
"id": "ygqygq2.turbo-print-log",
"publisherDisplayName": "ygqygq2",
"publisherId": "e0b1421e-635c-639a-85a0-8b271dcb3d11",
"isPreReleaseVersion": false
},
"dependencies": {
"@ygqygq2/vscode-log": "^0.0.3"
}
}