-
Notifications
You must be signed in to change notification settings - Fork 141
/
package.json
198 lines (198 loc) · 6.45 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": "turbo-console-log",
"displayName": "Turbo Console Log",
"description": "Automating the process of writing meaningful log messages.",
"version": "2.10.5",
"publisher": "ChakrounAnas",
"engines": {
"vscode": "^1.50.0"
},
"icon": "images/icon.png",
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact"
],
"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": false,
"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.insertEnclosingClass": {
"type": "boolean",
"default": true,
"description": "Whether to insert or not the enclosing class of the selected variable in the log message."
},
"turboConsoleLog.insertEnclosingFunction": {
"type": "boolean",
"default": true,
"description": "Whether to insert or not the enclosing function of the selected variable in 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.logType": {
"type": "string",
"enum": [
"log",
"warn",
"error",
"debug",
"table"
],
"default": "log",
"description": "Select the log type"
},
"turboConsoleLog.logFunction": {
"type": "string",
"default": "log",
"description": "Specify a log function (when specified logType will be ignored)"
}
}
},
"commands": [
{
"command": "turboConsoleLog.displayLogMessage",
"title": "Turbo Console Log: Display Log Message"
},
{
"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"
},
{
"command": "turboConsoleLog.commentAllLogMessages",
"key": "alt+shift+c",
"mac": "alt+shift+c"
},
{
"command": "turboConsoleLog.uncommentAllLogMessages",
"key": "alt+shift+u",
"mac": "alt+shift+u"
},
{
"command": "turboConsoleLog.deleteAllLogMessages",
"key": "alt+shift+d",
"mac": "alt+shift+d"
}
]
},
"scripts": {
"vscode:prepublish": "rm -rf out && 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",
"lint": "eslint src --ext ts",
"pretest": "yarn run esbuild-base",
"test-compile": "rm -rf out && tsc -p ./ && mkdir out/test/files && cp -r src/test/files/ out/test/files/",
"test": "npm run test-compile && node ./out/test/runTests.js",
"test:unit": "npm run test-compile && mocha --require ts-node/register 'src/test/unit/**/*.test.ts'"
},
"devDependencies": {
"@types/chai": "^5.0.0",
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.186",
"@types/mocha": "^8.0.0",
"@types/node": "^12.11.7",
"@types/vscode": "^1.50.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"chai": "^4.3.7",
"chalk": "^4.1.0",
"esbuild": "^0.17.7",
"eslint": "^7.9.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^3.1.4",
"glob": "^7.1.6",
"mocha": "^8.1.3",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.0.2",
"vscode-test": "^1.6.1"
},
"license": "SEE LICENSE IN LICENSE.txt",
"bugs": {
"url": "https://github.com/Chakroun-Anas/turbo-console-log/issues",
"email": "chakroun.anas@outlook.com"
},
"repository": {
"type": "git",
"url": "https://github.com/Chakroun-Anas/turbo-console-log"
},
"__metadata": {
"id": "6623619a-676d-4cde-943f-a3c193b44fc0",
"publisherDisplayName": "ChakrounAnas",
"publisherId": "4fecec8e-335d-44fc-ab16-5356745fb1ac",
"isPreReleaseVersion": false
},
"dependencies": {
"lodash": "^4.17.21"
}
}