-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
257 lines (257 loc) · 8.1 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
{
"name": "rover-runner",
"displayName": "Rover Runner",
"repository": {
"type": "git",
"url": "https://github.com/dowjones/rover-runner.git",
"directory": ""
},
"icon": "media/RoverLogo.png",
"galleryBanner": {
"color": "#FFEADB",
"theme": "light"
},
"description": "Tooling to locally debug subgraphs deployed to Apollo Studio with the Rover CLI",
"version": "0.2.6",
"engines": {
"vscode": "^1.76.0"
},
"categories": [
"Other"
],
"author": "Ethan Ruoff <[email protected]>",
"publisher": "dow-jones",
"activationEvents": [],
"main": "./out/main.js",
"contributes": {
"configuration": [
{
"id": "rover-runner-settings",
"title": "Rover Runner",
"properties": {
"rover-runner.useRedis": {
"type": "boolean",
"default": false,
"description": "Enable/disable launching a Redis instance upon running a subgraph"
},
"rover-runner.routerVersion": {
"type": "string",
"default": "1.29.1",
"description": "Version of Apollo Router that will be used"
},
"rover-runner.federationVersion": {
"type": "string",
"default": "=2.3.2",
"description": "Version of Apollo Federation that will be used"
},
"rover-runner.authorizationHeader": {
"type": "string",
"description": "Authorization header value used for introspection. Leave blank if there's no header required"
},
"rover-runner.supergraphConfigFilename": {
"type": "string",
"default": "supergraph.json",
"description": "Name of the supergraph configuration file"
},
"apolloStudioConfiguration.apolloKey": {
"type": "string",
"default": "",
"description": "Key that Apollo will use"
},
"apolloStudioConfiguration.apolloGraphRef": {
"type": "string",
"default": "",
"description": "The Apollo variant you would like to point to"
}
}
}
],
"viewsContainers": {
"activitybar": [
{
"id": "rover-runner",
"title": "Rover Runner",
"icon": "$(rocket)"
}
]
},
"views": {
"rover-runner": [
{
"id": "subgraphsList",
"name": "Subgraphs"
}
]
},
"menus": {
"view/title": [
{
"command": "subgraphsList.setEnvironmentVariables",
"when": "view == subgraphsList",
"group": "navigation@3"
},
{
"command": "subgraphsList.refreshEntry",
"when": "view == subgraphsList",
"group": "navigation@2"
},
{
"command": "rover-runner.stopAllSubgraphs",
"when": "view == subgraphsList",
"group": "navigation@1"
}
],
"view/item/context": [
{
"command": "rover-runner.SelectSubgraphUrl",
"when": "view == subgraphsList && viewItem == StoppedSubgraph",
"group": "inline@0"
},
{
"command": "rover-runner.runSubgraph",
"when": "view == subgraphsList && viewItem == StoppedSubgraph",
"group": "inline@1"
},
{
"command": "rover-runner.stopSubgraph",
"when": "view == subgraphsList && viewItem == RunningSubgraph",
"group": "inline"
},
{
"command": "rover-runner.runSupergraph",
"when": "view == subgraphsList && viewItem == StoppedSupergraph",
"group": "inline@1"
},
{
"command": "rover-runner.stopSupergraph",
"when": "view == subgraphsList && viewItem == RunningSupergraph",
"group": "inline"
}
]
},
"viewsWelcome": [
{
"view": "subgraphsList",
"contents": "No subgraph configuration found! \n[Generate Template](command:rover-runner.GenerateTemplate)"
}
],
"walkthroughs": [
{
"id": "gettingStarted",
"title": "Getting Started",
"description": "How to get up and running with Rover Runner",
"steps": [
{
"id": "setupSupergraphJson",
"title": "Setup Supergraph.json",
"description": "Configure your Supergraph URLs in order to locally run the Supergraph \n[Generate Template](command:rover-runner.GenerateTemplate)",
"completionEvents": [
"onCommand:rover-runner.GenerateTemplate"
],
"media": {
"image": "https://raw.githubusercontent.com/dowjones/rover-runner/main/media/supergraph.png",
"altText": "Screenshot of a configured supergraph.json"
}
},
{
"id": "configureExtension",
"title": "Configure the extension",
"description": "In order to run Rover commands, you'll need to provide a few inputs like the Apollo Graph Ref and Apollo Key. This step will take you to that page.\n[Go To Settings](command:subgraphsList.setEnvironmentVariables)",
"completionEvents": [
"onSettingChanged:apolloStudioConfiguration.apolloKey",
"onSettingChanged:apolloStudioConfiguration.apolloGraphRef"
],
"media": {
"image": "https://raw.githubusercontent.com/dowjones/rover-runner/main/media/settings.png",
"altText": "Screenshot of the Rover Runner settings"
}
}
]
}
],
"commands": [
{
"command": "rover-runner.apolloIsConfigured",
"title": "Triggers First Step Complete"
},
{
"command": "rover-runner.GenerateTemplate",
"title": "Generate Template"
},
{
"command": "rover-runner.SelectSubgraphUrl",
"title": "Select Subgraph Url",
"icon": "$(edit)"
},
{
"command": "rover-runner.runSubgraph",
"title": "Run Subgraph",
"icon": "$(run)"
},
{
"command": "rover-runner.stopSubgraph",
"title": "Stop Subgraph",
"icon": "$(debug-stop)"
},
{
"command": "rover-runner.runSupergraph",
"title": "Run Subgraph Supergraph",
"icon": "$(run)"
},
{
"command": "rover-runner.stopSupergraph",
"title": "Stop Subgraph Supergraph",
"icon": "$(debug-stop)"
},
{
"command": "rover-runner.stopAllSubgraphs",
"title": "Stop All Subgraphs",
"icon": "$(debug-stop)"
},
{
"command": "subgraphsList.refreshEntry",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "subgraphsList.setEnvironmentVariables",
"title": "Set Environment Variables",
"icon": "$(settings-gear)"
}
]
},
"scripts": {
"setup": "npm ci",
"prepublish-ci": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=es2020",
"build": "npm run esbuild-base -- --sourcemap",
"watch": "npm run esbuild-base -- --sourcemap --watch",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"pretest": "npm run build && npm run lint",
"lint": "eslint src --ext ts",
"test": "eslint src --ext ts && tsc",
"package": "vsce package --no-git-tag-version --no-update-package-json",
"publish": "vsce publish --no-git-tag-version --no-update-package-json"
},
"devDependencies": {
"@types/detect-port": "1.3.2",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.76.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@vscode/test-electron": "^2.3.0",
"@vscode/vsce": "2.21.0",
"esbuild": "0.18.6",
"eslint": "^8.36.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"axios": "1.4.0",
"detect-port": "1.5.1",
"yaml": "2.3.1"
}
}