-
Notifications
You must be signed in to change notification settings - Fork 13
/
package.json
349 lines (349 loc) · 10.9 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
{
"name": "commit-message-editor",
"displayName": "Commit Message Editor",
"description": "Edit commit messages in a convenient way.",
"version": "0.25.0",
"license": "MIT",
"preview": false,
"publisher": "adam-bender",
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Other"
],
"keywords": [
"git",
"vcs",
"semantic",
"conventional",
"commit"
],
"icon": "icon.png",
"repository": {
"url": "https://github.com/bendera/vscode-commit-message-editor"
},
"activationEvents": [
"onCommand:commitMessageEditor.openEditor",
"onCommand:commitMessageEditor.copyFromSCMInputBox",
"onCommand:commitMessageEditor.openSettingsPage",
"onWebviewPanel:copyFromExtensionMessageBox"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "commitMessageEditor.openEditor",
"title": "Open commit message editor",
"category": "Git",
"icon": "$(edit)"
},
{
"command": "commitMessageEditor.copyFromSCMInputBox",
"title": "Copy text from SCM input box",
"category": "Git"
},
{
"command": "commitMessageEditor.loadTemplate",
"title": "Load template",
"category": "Git"
},
{
"command": "commitMessageEditor.openSettingsPage",
"title": "Open Settings Page",
"category": "Commit Message Editor"
}
],
"menus": {
"scm/title": [
{
"command": "commitMessageEditor.openEditor",
"group": "navigation@1",
"title": "Edit",
"when": "scmProvider == git"
},
{
"command": "commitMessageEditor.openEditor",
"group": "inline",
"title": "Edit",
"when": "scmProvider == git"
}
]
},
"configuration": {
"title": "Commit Message Editor",
"properties": {
"commit-message-editor.confirmAmend": {
"type": "boolean",
"description": "Confirm amend commit",
"default": true
},
"commit-message-editor.dynamicTemplate": {
"type": "array",
"description": "Template for the form view. You can refer to tokens in {token_name} format.",
"items": {
"type": "string"
},
"default": [
"{type}{scope}: {description}",
"",
"{body}",
"",
"{breaking_change}{footer}"
]
},
"commit-message-editor.staticTemplate": {
"type": "array",
"description": "Template for the text view.",
"items": {
"type": "string"
},
"default": [
"feat: Short description",
"",
"Message body",
"",
"Message footer"
]
},
"commit-message-editor.tokens": {
"type": "array",
"description": "Editable inputs in the form view",
"default": [
{
"label": "Type",
"name": "type",
"type": "enum",
"options": [
{
"label": "---",
"value": ""
},
{
"label": "build",
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)"
},
{
"label": "chore",
"description": "Updating grunt tasks etc; no production code change"
},
{
"label": "ci",
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)"
},
{
"label": "docs",
"description": "Documentation only changes"
},
{
"label": "feat",
"description": "A new feature"
},
{
"label": "fix",
"description": "A bug fix"
},
{
"label": "perf",
"description": "A code change that improves performance"
},
{
"label": "refactor",
"description": "A code change that neither fixes a bug nor adds a feature"
},
{
"label": "revert"
},
{
"label": "style",
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
},
{
"label": "test",
"description": "Adding missing tests or correcting existing tests"
}
],
"description": "Type of changes"
},
{
"label": "Scope",
"name": "scope",
"description": "A scope may be provided to a commit’s type, to provide additional contextual information and is contained within parenthesis, e.g., \"feat(parser): add ability to parse arrays\".",
"type": "text",
"multiline": false,
"prefix": "(",
"suffix": ")"
},
{
"label": "Short description",
"name": "description",
"description": "Short description in the subject line.",
"type": "text",
"multiline": false
},
{
"label": "Body",
"name": "body",
"description": "Optional body",
"type": "text",
"multiline": true,
"lines": 5,
"maxLines": 10
},
{
"label": "Breaking change",
"name": "breaking_change",
"type": "boolean",
"value": "BREAKING CHANGE: ",
"default": false
},
{
"label": "Footer",
"name": "footer",
"description": "Optional footer",
"type": "text",
"multiline": true
}
]
},
"commit-message-editor.reduceEmptyLines": {
"type": "boolean",
"default": true,
"description": "If more than two empty lines follow each other, only the first two lines will be kept. The last line also will be removed if it is empty."
},
"commit-message-editor.view.columnToShowIn": {
"type": "string",
"enum": [
"Active",
"Beside",
"One",
"Two",
"Three",
"Four",
"Five",
"Six",
"Seven",
"Eight",
"Nine"
],
"enumDescriptions": [
"Open in the active column",
"Open next to the active column",
"Open in the first column",
"Open in the second column",
"Open in the third column",
"Open in the fourth column",
"Open in the fifth column",
"Open in the sixth column",
"Open in the seventh column",
"Open in the eighth column",
"Open in the ninth column"
],
"description": "In which column the editor should open",
"default": "Active"
},
"commit-message-editor.view.defaultView": {
"type": "string",
"default": "text",
"enum": [
"text",
"form"
]
},
"commit-message-editor.view.visibleViews": {
"type": "string",
"default": "both",
"enum": [
"text",
"form",
"both"
]
},
"commit-message-editor.view.fullWidth": {
"type": "boolean",
"description": "The editor fills the whole available space.",
"default": false
},
"commit-message-editor.view.useMonospaceEditor": {
"type": "boolean",
"description": "Use monospace font in the text view",
"default": false
},
"commit-message-editor.view.tabSize": {
"type": "number",
"description": "Tab size in the monospace editor",
"default": 4
},
"commit-message-editor.view.useTabs": {
"type": "boolean",
"description": "Use tabs for indentation in the monospace editor",
"default": false
},
"commit-message-editor.view.rulers": {
"type": "array",
"description": "Render vertical rulers after a certain number of monospace characters in the monospace editor. Use multiple values for multiple rulers. No rulers are drawn if array is empty.",
"default": [
50,
72
]
},
"commit-message-editor.view.visibleLines": {
"type": "number",
"description": "Visible lines in the text view",
"default": 10
},
"commit-message-editor.view.showRecentCommits": {
"type": "boolean",
"description": "Show recent commits in the main view.",
"default": true
},
"commit-message-editor.view.saveAndClose": {
"type": "boolean",
"description": "Close commit message editor tab after saving",
"default": false
}
}
}
},
"scripts": {
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"vscode:prepublish": "npm run compile",
"compile": "npm run compile:extension && npm run compile:frontend",
"compile:frontend": "cd frontend && npm run build",
"compile:extension": "npm run esbuild-base -- --minify",
"watch": "npm run esbuild-base -- --sourcemap --watch",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"wdio": "wdio run ./wdio.conf.ts"
},
"extensionDependencies": [
"vscode.git"
],
"devDependencies": {
"@types/glob": "^8.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.18",
"@types/vscode": "^1.70.0",
"@vscode/vsce": "^2.19.0",
"@wdio/cli": "^8.6.7",
"@wdio/local-runner": "^8.6.7",
"@wdio/mocha-framework": "^8.6.6",
"@wdio/spec-reporter": "^8.6.6",
"chromedriver": "^119.0.1",
"esbuild": "^0.17.5",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"semver": "^7.5.0",
"ts-node": "^10.9.1",
"tslint": "^6.1.2",
"typescript": "^4.9.5",
"vscode-test": "^1.5.2",
"wdio-chromedriver-service": "^8.1.1",
"wdio-vscode-service": "^5.0.0"
},
"dependencies": {
"ajv": "^8.12.0",
"vscode-codicons": "0.0.17"
}
}