-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
368 lines (368 loc) · 10.3 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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
{
"name": "assay",
"displayName": "assay",
"publisher": "mozilla",
"description": "A Firefox Addons review tool disguised as a VSCode exention.",
"version": "2.1.2",
"repository": {
"type": "git",
"url": "https://github.com/mozilla/assay"
},
"icon": "media/assay.jpeg",
"engines": {
"vscode": "^1.78.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onUri",
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"icons": {
"assay-edit": {
"description": "edit",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\eb04"
}
},
"assay-export": {
"description": "export",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\eb47"
}
},
"assay-share": {
"description": "share",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\eb21"
}
},
"assay-delete": {
"description": "close",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\eb55"
}
},
"assay-add": {
"description": "add",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\eb0b"
}
},
"assay-addon": {
"description": "addon",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\eb10"
}
},
"assay-refresh": {
"description": "refresh",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\eb13"
}
},
"assay-view": {
"description": "view",
"default": {
"fontPath": "media/tabler-icons.woff",
"fontCharacter": "\\fb79"
}
}
},
"configuration": {
"title": "Assay",
"properties": {
"assay.rootFolder": {
"type": "string",
"description": "The directory where add-ons are saved.",
"default": ""
},
"assay.diffTool": {
"type": "string",
"description": "Command to launch external tool to diff add-ons.",
"default": "bcompare"
},
"assay.deleteCommentsOnExport": {
"type": "string",
"description": "Whether or not to delete comments after exporting.",
"default": "No Preference",
"enum": [
"Yes",
"No",
"Ask Every Time"
]
}
}
},
"menus": {
"commandPalette": [
{
"command": "assay.refresh",
"when": "false"
},
{
"command": "assay.sidebarDiff",
"when": "false"
},
{
"command": "assay.sidebarDelete",
"when": "false"
},
{
"command": "assay.viewAddon",
"when": "false"
},
{
"command": "assay.addComment",
"when": "false"
},
{
"command": "assay.deleteComment",
"when": "false"
},
{
"command": "assay.disposeComment",
"when": "false"
},
{
"command": "assay.exportComments",
"when": "false"
},
{
"command": "assay.copyLink",
"when": "false"
}
],
"view/title": [
{
"command": "assay.get",
"group": "navigation@2",
"when": "view == assayCommands"
},
{
"command": "assay.refresh",
"group": "navigation@1",
"when": "view == assayCommands"
}
],
"view/item/context": [
{
"command": "assay.sidebarDiff",
"group": "primary@1",
"when": "viewItem !== guidDirectory && view == assayCommands && listDoubleSelection"
},
{
"command": "assay.sidebarDelete",
"group": "secondary@1",
"when": "view == assayCommands"
},
{
"command": "assay.viewAddon",
"group": "inline",
"when": "viewItem !== guidDirectory && view == assayCommands"
},
{
"command": "assay.exportComments",
"group": "primary@2",
"when": "viewItem !== guidDirectory && assay.commentsEnabled && !listMultiSelection"
},
{
"command": "assay.deleteCommentsFromContext",
"group": "primary@3",
"when": "viewItem !== guidDirectory && assay.commentsEnabled"
}
],
"comments/commentThread/title": [
{
"command": "assay.exportComments",
"group": "inline@1",
"when": "assay.commentsEnabled && !commentThreadIsEmpty"
},
{
"command": "assay.copyLink",
"group": "inline@3",
"when": "assay.commentsEnabled && !commentThreadIsEmpty"
},
{
"command": "assay.deleteComment",
"group": "inline@5",
"when": "assay.commentsEnabled && commentController == assay-comments && !commentThreadIsEmpty"
}
],
"editor/context": [
{
"command": "assay.addComment",
"when": "editorTextFocus && assay.commentsEnabled",
"group": "navigation@0"
},
{
"command": "assay.copyLineNumber",
"when": "editorTextFocus && assay.commentsEnabled",
"group": "navigation@0"
}
]
},
"views": {
"explorer": [
{
"id": "assayCommands",
"name": "Assay",
"icon": "media/assay.svg"
}
]
},
"viewsWelcome": [
{
"view": "assayCommands",
"contents": "You do not have any addons installed.\n[+ Review New Addon](command:assay.get)\n In order to use Assay, you must generate an API key and secret in the [Reviewer Tools](https://addons.mozilla.org/en-US/firefox/) section of AMO. \n[Enter API Key](command:assay.getApiKey)\n[Enter Secret](command:assay.getSecret)\nYou can [Test API Credentials](command:assay.testApiCredentials) if needed.\nNew to Assay? [View Instructions](command:assay.welcome)"
}
],
"commands": [
{
"command": "assay.welcome",
"title": "(Assay) Show Instructions"
},
{
"command": "assay.openInDiffTool",
"title": "(Assay) Open in Diff Tool"
},
{
"command": "assay.deleteCommentsFromContext",
"title": "Delete Comments"
},
{
"command": "assay.checkForUpdates",
"title": "(Assay) Check For Updates"
},
{
"command": "assay.get",
"title": "(Assay) Review New Addon",
"icon": "$(assay-add)"
},
{
"command": "assay.refresh",
"title": "Refresh Addons",
"icon": "$(assay-refresh)"
},
{
"command": "assay.sidebarDiff",
"title": "Open Versions in Diff Tool"
},
{
"command": "assay.sidebarDelete",
"title": "Delete Selected"
},
{
"command": "assay.viewAddon",
"title": "View Addon",
"icon": "$(assay-view)"
},
{
"command": "assay.getApiKey",
"title": "(Assay) Enter API Key"
},
{
"command": "assay.getSecret",
"title": "(Assay) Enter Secret Key"
},
{
"command": "assay.addComment",
"title": "(Assay) Mark for Review"
},
{
"command": "assay.copyLineNumber",
"title": "(Assay) Copy Line Number"
},
{
"command": "assay.deleteComment",
"title": "Delete",
"icon": "$(assay-delete)"
},
{
"command": "assay.disposeComment",
"title": "Remove All Comments"
},
{
"command": "assay.exportComments",
"title": "Export Comments",
"icon": "$(assay-export)"
},
{
"command": "assay.copyLink",
"title": "Copy Link",
"icon": "$(assay-share)"
}
]
},
"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": "npm run pretest && tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run format",
"lint": "eslint src --ext ts --fix",
"test": "c8 --check-coverage node ./out/test/runTest.js",
"prettier": "prettier --write '**'",
"prettier-ci": "prettier --list-different '**' || (echo '\n\nThis failure means you did not run `npm run prettier` before committing\n\n' && exit 1)",
"format": "npm run prettier && npm run lint",
"test:dev": "cross-env NODE_ENV=development npm run test",
"test:prod": "cross-env NODE_ENV=production npm run test",
"test:stage": "cross-env NODE_ENV=staging npm run test",
"test-all": "npm run test-dev && npm run test-prod && npm run test-stage",
"compile:dev": "cross-env NODE_ENV=development npm run compile",
"compile:prod": "cross-env NODE_ENV=production npm run compile",
"compile:stage": "cross-env NODE_ENV=staging npm run compile",
"build": "vsce package"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/glob": "^8.1.0",
"@types/jsonwebtoken": "^9.0.2",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/node-fetch": "^2.6.4",
"@types/sinon": "^10.0.15",
"@types/vscode": "^1.78.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@types/request": "^2.48.8",
"@typescript-eslint/parser": "^5.59.1",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.23.0",
"c8": "^7.14.0",
"chai": "^4.3.7",
"cross-env": "^7.0.3",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-node": "^0.3.7",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"node-fetch": "^2.6.1",
"prettier": "^2.8.8",
"sinon": "^15.1.0",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"vsce": "^1.97.0",
"webpack": "^5.81.0",
"webpack-cli": "^5.0.2",
"jszip": "^3.10.1"
},
"dependencies": {
"extract-zip": "^2.0.1",
"jsonwebtoken": "^9.0.1"
}
}