forked from microsoft/vscode-edge-devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
633 lines (633 loc) · 30.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
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
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
{
"name": "vscode-edge-devtools",
"displayName": "Microsoft Edge Tools for VS Code",
"description": "Use the Microsoft Edge Tools from within VS Code to see your site's runtime HTML structure, alter its layout, fix styling issues as well as see your site's network requests.",
"version": "1.1.8",
"license": "SEE LICENSE IN LICENSE",
"publisher": "ms-edgedevtools",
"preview": false,
"icon": "icon.png",
"extensionKind": [
"ui"
],
"author": {
"name": "Microsoft Corporation"
},
"homepage": "https://github.com/Microsoft/vscode-edge-devtools/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-edge-devtools"
},
"keywords": [
"browser",
"elements",
"network",
"devtools",
"styling",
"css",
"dom"
],
"engines": {
"vscode": "^1.48.0"
},
"categories": [
"Debuggers"
],
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"main": "./out/extension",
"activationEvents": [
"onCommand:vscode-edge-devtools.attach",
"onCommand:vscode-edge-devtools.launch",
"onWebviewPanel:vscode-edge-devtools",
"onView:vscode-edge-devtools-view.targets",
"onDebug"
],
"contributes": {
"commands": [
{
"command": "vscode-edge-devtools.attach",
"title": "Attach to a target",
"category": "Microsoft Edge Tools"
},
{
"command": "vscode-edge-devtools.launch",
"title": "Launch Edge and then attach to a target",
"category": "Microsoft Edge Tools"
},
{
"command": "vscode-edge-devtools-view.launch",
"category": "Microsoft Edge Tools",
"title": "Open a new tab",
"enablement": "titleCommandsRegistered",
"icon": {
"light": "resources/light/launch.svg",
"dark": "resources/dark/launch.svg"
}
},
{
"command": "vscode-edge-devtools-view.refresh",
"category": "Microsoft Edge Tools",
"title": "Refresh Targets",
"enablement": "titleCommandsRegistered",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "vscode-edge-devtools-view.attach",
"category": "Microsoft Edge Tools",
"title": "Attach and open Microsoft Edge Tools",
"enablement": "viewItem != cdpTargetClosing",
"icon": {
"light": "resources/light/attach.svg",
"dark": "resources/dark/attach.svg"
}
},
{
"command": "vscode-edge-devtools-view.close-instance",
"category": "Microsoft Edge Tools",
"title": "Close instance",
"enablement": "viewItem != cdpTargetClosing",
"icon": {
"light": "resources/light/close_browser_page.svg",
"dark": "resources/dark/close_browser_page.svg"
}
},
{
"command": "vscode-edge-devtools-view.copyItem",
"category": "Microsoft Edge Tools",
"title": "Copy Value"
},
{
"command": "vscode-edge-devtools-view.openSettings",
"category": "Microsoft Edge Tools",
"title": "Open Settings"
},
{
"command": "vscode-edge-devtools-view.viewChangelog",
"category": "Microsoft Edge Tools",
"title": "View Changelog"
},
{
"command": "vscode-edge-devtools-view.viewDocumentation",
"category": "Microsoft Edge Tools",
"title": "View Documentation"
},
{
"command": "vscode-edge-devtools-view.configureLaunchJson",
"category": "Microsoft Edge Tools",
"enablement": "titleCommandsRegistered",
"title": "Configure launch.json file"
},
{
"command": "vscode-edge-devtools-view.launchProject",
"category": "Microsoft Edge Tools",
"enablement": "titleCommandsRegistered",
"title": "Launch project"
}
],
"configuration": {
"title": "Microsoft Edge Tools",
"type": "object",
"properties": {
"vscode-edge-devtools.hostname": {
"type": "string",
"default": "localhost",
"description": "The hostname on which to search for remote debuggable instances"
},
"vscode-edge-devtools.port": {
"type": "number",
"default": 9222,
"description": "The port on which to search for remote debuggable instances"
},
"vscode-edge-devtools.useHttps": {
"type": "boolean",
"default": false,
"description": "Should we request the remote target list using https rather than http"
},
"vscode-edge-devtools.defaultUrl": {
"type": "string",
"default": "",
"description": "The default url to open when launching the browser without a target"
},
"vscode-edge-devtools.userDataDir": {
"type": [
"string",
"boolean"
],
"default": true,
"description": "By default, Microsoft Edge is launched with a separate user profile in a temp folder. Use this option to override the path. You can also set to false to launch with your default user profile instead."
},
"vscode-edge-devtools.webRoot": {
"type": "string",
"description": "The absolute path to the webserver root. Used to resolve paths like `/app.js` to files on disk",
"default": "${workspaceFolder}"
},
"vscode-edge-devtools.pathMapping": {
"type": "object",
"default": {
"/": "${workspaceFolder}"
},
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on disk"
},
"vscode-edge-devtools.sourceMapPathOverrides": {
"type": "object",
"description": "A set of mappings to override the locations of source map files.",
"default": {
"webpack:///./*": "${webRoot}/*",
"webpack:///src/*": "${webRoot}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${webRoot}/node_modules/*",
"meteor://💻app/*": "${webRoot}/*"
}
},
"vscode-edge-devtools.sourceMaps": {
"type": "boolean",
"description": "Use JavaScript source maps (if they exist)",
"default": true
},
"vscode-edge-devtools.autoAttachViaDebuggerForEdge": {
"type": "boolean",
"description": "Auto attach the Microsoft Edge Tools extension when you launch a browser with the Debugger For Microsoft Edge debug adapter extension",
"default": true
},
"vscode-edge-devtools.enableNetwork": {
"type": "boolean",
"description": "Enable network panel (requires relaunching extension)",
"default": true
},
"vscode-edge-devtools.showWorkers": {
"type": "boolean",
"description": "Show service and shared workers in the target list.",
"default": false
},
"vscode-edge-devtools.whatsNew": {
"type": "boolean",
"description": "Enable What's New panel in the drawer (requires relaunching extension)",
"default": true
},
"vscode-edge-devtools.headless": {
"type": "boolean",
"description": "Launch Microsoft Edge in headless mode. (requires relaunching Visual Studio Code)",
"default": false
},
"vscode-edge-devtools.timeout": {
"type": "number",
"description": "The number of milliseconds that the Microsoft Edge Tools will keep trying to attach the browser before timing out",
"default": 10000
},
"vscode-edge-devtools.browserFlavor": {
"type": "string",
"enum": [
"Default",
"Stable",
"Beta",
"Dev",
"Canary"
],
"enumDescriptions": [
"Microsoft Edge Tools for VS Code will try to open the Microsoft Edge flavors in the following order: Stable, Beta, Dev and Canary",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Stable version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Beta version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Dev version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Canary version"
]
},
"vscode-edge-devtools.themes": {
"type": "string",
"description": "Set the theme of the Microsoft Edge Tools extension (reload required after changing).",
"enum": [
"System preference",
"Light",
"Dark"
],
"enumDescriptions": [
"Microsoft Edge Tools for VS Code will use the system preferred setting for themes",
"Microsoft Edge Tools for VS Code will use the Edge DevTools light theme",
"Microsoft Edge Tools for VS Code will use the Edge DevTools dark theme"
]
}
}
},
"debuggers": [
{
"type": "vscode-edge-devtools.debug",
"label": "Microsoft Edge Tools",
"configurationSnippets": [
{
"label": "Microsoft Edge Tools: Launch",
"description": "Launch Microsoft Edge to a URL",
"body": {
"type": "vscode-edge-devtools.debug",
"request": "launch",
"name": "Launch Microsoft Edge and open the Edge DevTools",
"url": "http://localhost:8080",
"webRoot": "^\"${2:\\${workspaceFolder\\}}\""
}
},
{
"label": "Microsoft Edge Tools: Attach",
"description": "Attach to an instance of Microsoft Edge already in debug mode",
"body": {
"type": "vscode-edge-devtools.debug",
"request": "attach",
"name": "Attach to Microsoft Edge and open the Edge DevTools",
"url": "http://localhost:8080",
"webRoot": "^\"${2:\\${workspaceFolder\\}}\""
}
}
],
"configurationAttributes": {
"launch": {
"properties": {
"url": {
"type": "string",
"description": "Absolute uri to launch",
"default": "http://localhost:8080"
},
"file": {
"type": "string",
"description": "File path to launch",
"default": "${workspaceFolder}/index.html"
},
"hostname": {
"type": "string",
"default": "localhost",
"description": "The hostname on which to search for remote debuggable instances"
},
"port": {
"type": "number",
"default": 9222,
"description": "The port on which to search for remote debuggable instances"
},
"userDataDir": {
"type": [
"string",
"boolean"
],
"description": "By default, Microsoft Edge is launched with a separate user profile in a temp folder. Use this option to override the path. You can also set to false to launch with your default user profile instead.",
"default": true
},
"useHttps": {
"type": "boolean",
"default": false,
"description": "Should we request the remote target list using https rather than http"
},
"webRoot": {
"type": "string",
"description": "The absolute path to the webserver root. Used to resolve paths like `/app.js` to files on disk",
"default": "${workspaceFolder}"
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in Microsoft Edge to scripts on disk",
"default": {
"/": "${workspaceFolder}"
}
},
"sourceMapPathOverrides": {
"type": "object",
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on disk",
"default": {
"webpack:///./*": "${webRoot}/*",
"webpack:///src/*": "${webRoot}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${webRoot}/node_modules/*",
"meteor://💻app/*": "${webRoot}/*"
}
},
"sourceMaps": {
"type": "boolean",
"description": "Use JavaScript source maps (if they exist)",
"default": true
},
"vscode-edge-devtools.browserFlavor": {
"type": "string",
"enum": [
"Default",
"Stable",
"Beta",
"Dev",
"Canary"
],
"enumDescriptions": [
"Microsoft Edge Tools for VS Code will try to open the Microsoft Edge flavors in the following order: Stable, Beta, Dev and Canary",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Stable version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Beta version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Dev version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Canary version"
]
}
}
},
"attach": {
"properties": {
"url": {
"type": "string",
"description": "Absolute uri to launch.",
"default": "http://localhost:8080"
},
"file": {
"type": "string",
"description": "File path to launch.",
"default": "${workspaceFolder}/index.html"
},
"hostname": {
"type": "string",
"default": "localhost",
"description": "The hostname on which to search for remote debuggable instances"
},
"port": {
"type": "number",
"default": 9222,
"description": "The port on which to search for remote debuggable instances"
},
"userDataDir": {
"type": [
"string",
"boolean"
],
"description": "By default, Microsoft Edge is launched with a separate user profile in a temp folder. Use this option to override the path. You can also set to false to launch with your default user profile instead.",
"default": true
},
"useHttps": {
"type": "boolean",
"default": false,
"description": "Should we request the remote target list using https rather than http"
},
"webRoot": {
"type": "string",
"description": "The absolute path to the webserver root. Used to resolve paths like `/app.js` to files on disk",
"default": "${workspaceFolder}"
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in Microsoft Edge to scripts on disk",
"default": {
"/": "${workspaceFolder}"
}
},
"sourceMapPathOverrides": {
"type": "object",
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on disk",
"default": {
"webpack:///./*": "${webRoot}/*",
"webpack:///src/*": "${webRoot}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${webRoot}/node_modules/*",
"meteor://💻app/*": "${webRoot}/*"
}
},
"sourceMaps": {
"type": "boolean",
"description": "Use JavaScript source maps (if they exist)",
"default": true
},
"vscode-edge-devtools.browserFlavor": {
"type": "string",
"enum": [
"Default",
"Stable",
"Beta",
"Dev",
"Canary"
],
"enumDescriptions": [
"Microsoft Edge Tools for VS Code will try to open the Microsoft Edge flavors in the following order: Stable, Beta, Dev and Canary",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Stable version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Beta version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Dev version",
"Microsoft Edge Tools for VS Code will use Microsoft Edge Canary version"
]
}
}
}
}
}
],
"menus": {
"commandPalette": [
{
"command": "vscode-edge-devtools-view.attach",
"when": "view == vscode-edge-devtools-view.targets && viewItem == cdpTarget"
},
{
"command": "vscode-edge-devtools-view.launch",
"when": "view == vscode-edge-devtools-view.targets"
},
{
"command": "vscode-edge-devtools-view.refresh",
"when": "view == vscode-edge-devtools-view.targets"
},
{
"command": "vscode-edge-devtools-view.copyItem",
"when": "view == vscode-edge-devtools-view.targets && viewItem == cdpTargetProperty"
},
{
"command": "vscode-edge-devtools-view.openSettings",
"when": "view == vscode-edge-devtools-view.targets"
},
{
"command": "vscode-edge-devtools-view.viewChangelog",
"when": "view == vscode-edge-devtools-view.targets"
}
],
"view/title": [
{
"command": "vscode-edge-devtools-view.launch",
"when": "view == vscode-edge-devtools-view.targets",
"group": "navigation"
},
{
"command": "vscode-edge-devtools-view.refresh",
"when": "view == vscode-edge-devtools-view.targets",
"group": "navigation"
},
{
"command": "vscode-edge-devtools-view.openSettings",
"when": "view == vscode-edge-devtools-view.targets",
"group": "2_vscode-edge-devtools"
},
{
"command": "vscode-edge-devtools-view.viewChangelog",
"when": "view == vscode-edge-devtools-view.targets",
"group": "2_vscode-edge-devtools"
}
],
"view/item/context": [
{
"command": "vscode-edge-devtools-view.attach",
"when": "view == vscode-edge-devtools-view.targets && viewItem == cdpTarget || viewItem == cdpTargetClosing",
"group": "inline"
},
{
"command": "vscode-edge-devtools-view.close-instance",
"when": "view == vscode-edge-devtools-view.targets && viewItem == cdpTarget || viewItem == cdpTargetClosing",
"group": "inline"
},
{
"command": "vscode-edge-devtools-view.attach",
"when": "view == vscode-edge-devtools-view.targets && viewItem == cdpTarget"
},
{
"command": "vscode-edge-devtools-view.copyItem",
"when": "view == vscode-edge-devtools-view.targets && viewItem == cdpTargetProperty",
"group": "2_contextMenu"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "vscode-edge-devtools-view",
"title": "Microsoft Edge Tools",
"icon": "resources/viewIcon.svg"
}
]
},
"views": {
"vscode-edge-devtools-view": [
{
"id": "vscode-edge-devtools-view.targets",
"name": "Targets"
}
]
},
"viewsWelcome": [
{
"view": "vscode-edge-devtools-view.targets",
"contents": "Launch an instance of Microsoft Edge to begin inspecting and modifying webpages.\n[Launch Instance](command:vscode-edge-devtools-view.launch)",
"when": "launchJsonStatus != Supported"
},
{
"view": "vscode-edge-devtools-view.targets",
"contents": "To customize your launch experience, [open a folder](command:vscode.openFolder) and create a launch.json file.",
"when": "workbenchState == empty"
},
{
"view": "vscode-edge-devtools-view.targets",
"contents": "Customize your launch experience by adding a launch.json file to your project.\n[Generate launch.json](command:vscode-edge-devtools-view.configureLaunchJson)",
"when": "workbenchState != empty && launchJsonStatus == None"
},
{
"view": "vscode-edge-devtools-view.targets",
"contents": "Customize your launch experience by adding a debug configuration to your launch.json file.\n[Configure launch.json](command:vscode-edge-devtools-view.configureLaunchJson)",
"when": "launchJsonStatus == Unsupported"
},
{
"view": "vscode-edge-devtools-view.targets",
"contents": "Launch an instance of Microsoft Edge to begin inspecting and modifying your site.\n[Launch Project](command:vscode-edge-devtools-view.launchProject)",
"when": "launchJsonStatus == Supported"
},
{
"view": "vscode-edge-devtools-view.targets",
"contents": "If you have any questions or want to learn more, check the [docs on GitHub](command:vscode-edge-devtools-view.viewDocumentation)."
}
]
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "/test/.+\\.test\\.tsx?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"scripts": {
"package": "vsce package --out vscode-edge-devtools.vsix",
"vscode:prepublish": "npm run build-and-lint",
"build": "npm run build-wp && npm run build-post",
"build-debug": "npm run build-wp && ts-node postBuildStep.ts debug",
"build-wp": "webpack",
"build-post": "ts-node postBuildStep.ts",
"build-watch": "npm run build && npm run watch",
"build-and-lint": "npm run build && npm run lint",
"watch": "npm run watch-wp",
"watch-wp": "webpack --watch",
"lint": "eslint -c .eslintrc.js */*.ts",
"test": "npm run lint && jest --config package.json --runInBand",
"download-edge": "node scripts/downloadAndExtractEdge.js"
},
"dependencies": {
"puppeteer-core": "9.1.1",
"vscode-chrome-debug-core": "6.8.9",
"vscode-extension-telemetry": "0.1.7",
"ws": "7.4.5",
"xmlhttprequest": "1.8.0"
},
"devDependencies": {
"@opentelemetry/tracing": "0.18.0",
"@types/copy-webpack-plugin": "8.0.0",
"@types/fs-extra": "9.0.11",
"@types/jest": "26.0.23",
"@types/node": "15.0.2",
"@types/puppeteer-core": "5.4.0",
"@types/vscode": "1.48.0",
"@types/ws": "7.4.2",
"@typescript-eslint/eslint-plugin": "4.22.1",
"@typescript-eslint/parser": "4.22.1",
"copy-webpack-plugin": "8.1.1",
"eslint": "7.25.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "33.1.0",
"eslint-plugin-prefer-arrow": "1.2.3",
"fs-extra": "10.0.0",
"jest": "26.6.3",
"ts-jest": "26.5.6",
"ts-loader": "9.1.2",
"ts-node": "9.1.1",
"typescript": "4.2.4",
"unzipper": "0.10.11",
"vsce": "1.88.0",
"vscode-test": "1.5.2",
"webpack": "5.36.2",
"webpack-cli": "4.7.0"
}
}