forked from apollographql/apollo-workbench-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
479 lines (479 loc) · 15.9 KB
/
package.json
File metadata and controls
479 lines (479 loc) · 15.9 KB
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
{
"name": "apollo-workbench",
"displayName": "Apollo Workbench",
"description": "Tooling to help you develop and mock federated schemas using Apollo Federation",
"icon": "media/workbench.png",
"repository": {
"url": "https://github.com/apollographql/apollo-workbench-vscode"
},
"license": "SEE LICENSE IN LICENSE",
"version": "2.2.1",
"publisher": "ApolloGraphQL",
"engines": {
"vscode": "^1.34.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:local-supergraph-designs"
],
"main": "./out/extension.js",
"scripts": {
"codegen": "apollo client:codegen --target=typescript src/graphql/types --outputFlat",
"vscode:prepublish": "npm run compile",
"vscode:package": "vsce package",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./",
"postinstall": "npm run compile",
"test": "node ./out/__tests__/testsNoStatus.js",
"test:ci": "node ./out/__tests__/githubCheckTests.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/graphql": "^14.5.0",
"@types/lodash": "^4.14.165",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.14",
"@types/vscode": "^1.34.0",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"eslint": "^7.1.0",
"mocha": "^8.2.1",
"prettier": "^2.2.1",
"typescript": "^4.0.2",
"vsce": "^1.83.0",
"vscode-test": "^1.4.1"
},
"dependencies": {
"@apollo/client": "^3.4.16",
"@apollo/composition": "npm:@apollo/composition@2.0.0-alpha.2",
"@apollo/federation-1": "npm:@apollo/federation@^0.33.8",
"@apollo/federation-2": "npm:@apollo/subgraph@2.0.0-alpha.2",
"@apollo/gateway-1": "npm:@apollo/gateway@^0.44.1",
"@apollo/gateway-2": "npm:@apollo/gateway@2.0.0-alpha.2",
"@apollo/query-graphs": "npm:@apollo/query-graphs@2.0.0-alpha.2",
"@apollo/query-planner-1": "npm:@apollo/query-planner@^0.5.1",
"@apollo/query-planner-2": "npm:@apollo/query-planner@2.0.0-alpha.2",
"apollo-server": "^3.4.0",
"archiver": "^5.2.0",
"chokidar": "^3.4.3",
"codemirror": "^5.63.3",
"faker": "^5.4.0",
"graphql": "^15.6.1",
"graphql-tools": "^8.2.0",
"lodash": "^4.17.20",
"node-fetch": "^2.6.4",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0"
},
"prettier": {
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
},
"contributes": {
"configuration": {
"title": "Apollo-Workbench",
"properties": {
"apollo-workbench.apolloApiUrl": {
"type": [
"string"
],
"default": "https://graphql.api.apollographql.com/api/graphql",
"description": "Specifies the url endpoint to be used for the Apollo Studio Graph"
},
"apollo-workbench.apolloOrg": {
"type": [
"string"
],
"default": "",
"description": "This setting is meant to hardcode the org used"
},
"apollo-workbench.openSandboxOnStartMocks": {
"type": "boolean",
"default": true,
"description": "Determines whether https://studio.apollographql.com/sandbox should be opened when mocks are started for a workbench design"
},
"apollo-workbench.gatewayPort": {
"type": [
"number"
],
"default": 4000,
"description": "Specifies the url endpoint to be used for the Apollo Studio Graph"
},
"apollo-workbench.startingServerPort": {
"type": [
"number"
],
"default": 4001,
"description": "Specifies the url endpoint to be used for the Apollo Studio Graph"
},
"apollo-workbench.gatewayReCompositionInterval": {
"type": [
"number"
],
"default": 10000,
"description": "Specifies the interval the Apollo Gateway will try re-composing it's schema in ms"
},
"apollo-workbench.daysOfOperationsToFetch": {
"type": [
"number"
],
"default": 30,
"description": "Specifies the number of days to select operations from Apollo Studio (to current day)"
},
"apollo-workbench.runOperationRegistry": {
"type": [
"boolean"
],
"default": false,
"description": "Specifies the url endpoint to be used for the Apollo Studio Graph"
},
"apollo-workbench.displayGettingStarted": {
"type": [
"boolean"
],
"default": true,
"description": "Specifies whether to display the 'Getting Started' section is shown in the 'Local Schema Files' TreeView"
},
"apollo-workbench.displayExampleGraphs": {
"type": [
"boolean"
],
"default": true,
"description": "Specifies whether to display the 'Example Graphs' section is shown in the 'Apollo Studio Graphs' TreeView"
},
"apollo-workbench.tlsRejectUnauthorized": {
"type": [
"boolean"
],
"default": false,
"description": "Specifies whether to set `NODE_TLS_REJECT_UNAUTHORIZED=0` or not. `NODE_TLS_REJECT_UNAUTHORIZED=0` is the default to avoid enterprise cert issues in development - Note this should never be done in production"
},
"apollo-workbench.headersToForwardFromGateway": {
"type": "array",
"default": [],
"description": "Specifies what headers should be forwarded from the gateway to downstream mocked services"
},
"apollo-workbench.local-designs.expandSubgraphsByDefault": {
"type": "boolean",
"default": true,
"description": "Specifies whether the subgraphs in a design should be expanded by default in the visual tree"
},
"apollo-workbench.local-designs.expandOperationsByDefault": {
"type": "boolean",
"default": true,
"description": "Specifies whether the operations in a design should be expanded by default in the visual tree"
}
}
},
"commands": [
{
"command": "local-supergraph-designs.refresh",
"title": "Refresh local subgraph designs",
"icon": "$(refresh)"
},
{
"command": "local-supergraph-designs.editSubgraph",
"title": "Edit Subgraph",
"icon": "$(edit)"
},
{
"command": "local-supergraph-designs.addSubgraph",
"title": "Add New Subgrraph to Design",
"icon": "$(add)"
},
{
"command": "local-supergraph-designs.newDesign",
"title": "Create New Supergraph Design",
"icon": "$(add)"
},
{
"command": "local-supergraph-designs.viewSettings",
"title": "View Settings for Service",
"icon": "$(gear)"
},
{
"command": "local-supergraph-designs.viewSupergraphSchema",
"title": "View Supergraph Schema"
},
{
"command": "local-supergraph-designs.viewSupergraphApiSchema",
"title": "View API Schema for Supergraph"
},
{
"command": "local-supergraph-designs.exportSupergraphSchema",
"title": "Export Supergraph Schema"
},
{
"command": "local-supergraph-designs.exportSupergraphApiSchema",
"title": "Export API Schema for Supergraph"
},
{
"command": "local-supergraph-designs.editOperation",
"title": "Edit Operation"
},
{
"command": "local-supergraph-designs.addOperation",
"title": "Add Operation",
"icon": "$(add)"
},
{
"command": "local-supergraph-designs.viewQueryPlan",
"title": "View Query Plan",
"icon": "$(output)"
},
{
"command": "local-supergraph-designs.deleteSubgraph",
"title": "Delete Subgraph",
"icon": "$(trash)"
},
{
"command": "local-supergraph-designs.deleteOperation",
"title": "Delete Operation",
"icon": "$(trash)"
},
{
"command": "local-supergraph-designs.startMocks",
"title": "Start Supergraph Mocks",
"icon": "$(play)",
"category": "Apollo Workbench"
},
{
"command": "local-supergraph-designs.stopMocks",
"title": "Stop Supergraph Mocks",
"icon": "$(debug-stop)",
"category": "Apollo Workbench"
},
{
"command": "local-supergraph-designs.updateSubgraphSchemaFromURL",
"title": "Update Subgraph Schema from URL"
},
{
"command": "local-supergraph-designs.viewSubgraphCustomMocks",
"title": "View Subgraph Custom Mocks"
},
{
"command": "local-supergraph-designs.exportSubgraphSchema",
"title": "Export Subgraph Schema"
},
{
"command": "local-supergraph-designs.exportSubgraphResolvers",
"title": "Export Subgraph Entity Resolvers"
},
{
"command": "local-supergraph-designs.createInStudio",
"title": "Create new Apollo Studio Graph from design"
},
{
"command": "local-supergraph-designs.exportDesignToProject",
"title": "Export design into a local project"
},
{
"command": "local-supergraph-designs.switchFederationComposition",
"title": "Switch between Apollo Federation 1 and 2"
},
{
"command": "extension.gettingStarted",
"title": "Getting Started"
},
{
"command": "extension.openFolder",
"title": "Open Folder",
"category": "Apollo Workbench"
},
{
"command": "extension.enterStudioApiKey",
"title": "Login to Apollo",
"category": "Apollo Workbench",
"icon": "$(log-in)"
},
{
"command": "extension.deleteStudioApiKey",
"title": "Logout of Apollo",
"category": "Apollo Workbench",
"icon": "$(log-out)"
},
{
"command": "studio-graphs.createWorkbenchFromGraph",
"title": "Create Workbench File from Graph"
},
{
"command": "studio-graphs.createWorkbenchFromPreloaded",
"title": "Create Workbench File from Example"
},
{
"command": "studio-graphs.createWorkbenchFromSupergraphVariant",
"title": "Create Workbench File from Graph"
},
{
"command": "studio-graphs.refresh",
"title": "Refresh Graphs",
"icon": "$(refresh)"
},
{
"command": "studio-graphs.switchOrg",
"title": "Switch Apollo Studio Org",
"category": "Apollo Workbench"
},
{
"command": "studio-graphs.loadOperations",
"title": "Load Graph Operations"
},
{
"command": "studio-operations.addToWorkbench",
"title": "Add Operation to Current Workbench",
"icon": "$(add)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "apollo-workbench",
"title": "Apollo Workbench",
"icon": "media/workbench.svg"
}
]
},
"views": {
"apollo-workbench": [
{
"id": "local-supergraph-designs",
"name": "Local Supergraph Designs"
},
{
"id": "studio-graphs",
"name": "Apollo Studio Graphs"
},
{
"id": "studio-operations",
"name": "Apollo Studio Graph Operations"
}
]
},
"menus": {
"view/title": [
{
"command": "local-supergraph-designs.refresh",
"when": "view == local-supergraph-designs",
"group": "navigation@2"
},
{
"command": "local-supergraph-designs.newDesign",
"when": "view == local-supergraph-designs",
"group": "navigation@1"
},
{
"command": "studio-graphs.refresh",
"when": "view == studio-graphs",
"group": "navigation@2"
}
],
"view/item/context": [
{
"command": "local-supergraph-designs.createInStudio",
"when": "view == local-supergraph-designs && viewItem == supergraphTreeItem",
"group": "1"
},
{
"command": "local-supergraph-designs.exportDesignToProject",
"when": "view == local-supergraph-designs && viewItem == supergraphTreeItem",
"group": "2"
},
{
"command": "local-supergraph-designs.viewSettings",
"when": "view == local-supergraph-designs && viewItem == subgraphTreeItem",
"group": "inline"
},
{
"command": "local-supergraph-designs.startMocks",
"when": "view == local-supergraph-designs && viewItem == subgraphSummaryTreeItem",
"group": "inline@1"
},
{
"command": "local-supergraph-designs.stopMocks",
"when": "view == local-supergraph-designs && viewItem == subgraphSummaryTreeItem",
"group": "inline@2"
},
{
"command": "local-supergraph-designs.addSubgraph",
"when": "view == local-supergraph-designs && viewItem == subgraphSummaryTreeItem",
"group": "inline@3"
},
{
"command": "local-supergraph-designs.addOperation",
"when": "view == local-supergraph-designs && viewItem == operationSummaryTreeItem",
"group": "inline"
},
{
"command": "local-supergraph-designs.viewQueryPlan",
"when": "view == local-supergraph-designs && viewItem == operationTreeItem",
"group": "inline"
},
{
"command": "local-supergraph-designs.updateSubgraphSchemaFromURL",
"when": "view == local-supergraph-designs && viewItem == subgraphTreeItem",
"group": "1@1"
},
{
"command": "local-supergraph-designs.viewSubgraphCustomMocks",
"when": "view == local-supergraph-designs && viewItem == subgraphTreeItem",
"group": "1@2"
},
{
"command": "local-supergraph-designs.exportSubgraphSchema",
"when": "view == local-supergraph-designs && viewItem == subgraphTreeItem",
"group": "2@1"
},
{
"command": "local-supergraph-designs.exportSubgraphResolvers",
"when": "view == local-supergraph-designs && viewItem == subgraphTreeItem",
"group": "2@2"
},
{
"command": "local-supergraph-designs.deleteSubgraph",
"when": "view == local-supergraph-designs && viewItem == subgraphTreeItem",
"group": "9@1"
},
{
"command": "local-supergraph-designs.deleteOperation",
"when": "view == local-supergraph-designs && viewItem == operationTreeItem",
"group": "10@1"
},
{
"command": "local-supergraph-designs.exportSupergraphSchema",
"when": "view == local-supergraph-designs && viewItem == supergraphSchemaTreeItem",
"group": "1"
},
{
"command": "local-supergraph-designs.exportSupergraphApiSchema",
"when": "view == local-supergraph-designs && viewItem == supergraphApiSchemaTreeItem",
"group": "2"
},
{
"command": "studio-graphs.createWorkbenchFromGraph",
"when": "view == studio-graphs && viewItem == studioGraphTreeItem"
},
{
"command": "studio-graphs.createWorkbenchFromPreloaded",
"when": "view == studio-graphs && viewItem == preloadedWorkbenchFile"
},
{
"command": "studio-graphs.createWorkbenchFromSupergraphVariant",
"when": "view == studio-graphs && viewItem == studioGraphVariantTreeItem"
},
{
"command": "studio-operations.addToWorkbench",
"when": "view == studio-operations && viewItem == studioOperationTreeItem",
"group": "inline"
},
{
"command": "studio-operations.addToWorkbench",
"when": "view == studio-operations && viewItem == studioOperationTreeItem"
}
]
}
}
}