-
Notifications
You must be signed in to change notification settings - Fork 154
/
package.json
299 lines (299 loc) · 9.51 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
{
"name": "vscode-browser-preview",
"displayName": "[Deprecated] Browser Preview",
"categories": [
"Other"
],
"icon": "resources/icon_128.png",
"author": {
"email": "kenneth@auchenberg.dk",
"name": "Kenneth Auchenberg"
},
"description": "This extension is deprecated in favor of the Live Preview extension.",
"publisher": "auchenberg",
"engines": {
"vscode": "^1.30.0"
},
"extensionKind": [
"ui",
"workspace"
],
"license": "MIT",
"version": "0.7.2",
"main": "./build/ext-src/extension.js",
"activationEvents": [
"onView:targetTree",
"onCommand:browser-preview.openPreview",
"onCommand:browser-preview.openActiveFile",
"onDebugInitialConfigurations",
"onDebug",
"onFileSystem:vsls",
"onCommand:liveshare.start",
"onCommand:liveshare.startFromActivityBar",
"onCommand:liveshare.startReadOnly",
"onCommand:liveshare.startReadOnlyFromActivityBar",
"onCommand:liveshare.startReadOnlyFromSessionExplorer",
"onCommand:liveshare.inviteUserJoin",
"onCommand:liveshare.inviteUserJoinByEmail"
],
"contributes": {
"configuration": {
"title": "Browser Preview",
"type": "object",
"properties": {
"browser-preview.startUrl": {
"default": "https://code.visualstudio.com",
"description": "The default start url for new Browser Preview instances",
"type": "string"
},
"browser-preview.chromeExecutable": {
"default": "",
"description": "The full path to the executable, including the complete filename of the executable",
"type": "string"
},
"browser-preview.verbose": {
"default": "",
"description": "Toggles verbose logging",
"type": "boolean"
},
"browser-preview.format": {
"default": "jpeg",
"description": "The type of image used in rendering preview. Supported values are: `jpeg` (default) and `png`",
"type": "string"
},
"browser-preview.ignoreHttpsErrors": {
"default": "",
"description": "Ignore HTTPS errors if you are using self-signed SSL certificates",
"type": "boolean"
}
}
},
"commands": [
{
"category": "Browser Preview",
"command": "browser-preview.openPreview",
"title": "Open in Browser Preview"
},
{
"category": "Browser Preview",
"command": "browser-preview.openSharedBrowser",
"title": "Open Shared Browser"
},
{
"category": "Browser Preview",
"command": "browser-preview.openActiveFile",
"title": "Open Active File in Preview"
}
],
"debuggers": [
{
"type": "browser-preview",
"label": "Browser Preview",
"configurationSnippets": [
{
"label": "Browser Preview: Launch",
"description": "Launch Browser Preview to localhost",
"body": {
"type": "browser-preview",
"request": "launch",
"name": "Browser Preview: Launch",
"url": "http://localhost:3000"
}
},
{
"label": "Browser Preview: Attach",
"description": "Attach to open Browser Preview instances",
"body": {
"type": "browser-preview",
"request": "attach",
"name": "Browser Preview: Attach"
}
}
],
"configurationAttributes": {
"launch": {
"properties": {
"url": {
"type": "string",
"description": "Absolute url to launch",
"default": "http://localhost:3000"
},
"webRoot": {
"type": "string",
"description": "This specifies the workspace absolute path to the webserver root. Used to resolve paths like `/app.js` to files on disk. Shorthand for a pathMapping for \"/\"",
"default": "${workspaceFolder}"
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in Chrome to scripts on disk",
"default": {
"/": "${workspaceFolder}"
}
},
"trace": {
"type": [
"boolean",
"string"
],
"enum": [
"verbose",
true
],
"default": true,
"description": "When 'true', the debugger will log tracing info to a file. When 'verbose', it will also show logs in the console."
},
"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. See README for details.",
"default": {
"webpack:///./*": "${webRoot}/*",
"webpack:///src/*": "${webRoot}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${webRoot}/node_modules/*",
"meteor://💻app/*": "${webRoot}/*"
}
}
}
},
"attach": {
"properties": {
"urlFilter": {
"type": "string",
"description": "Will search for a page with this url and attach to it, if found. Can have * wildcards.",
"default": ""
},
"webRoot": {
"type": "string",
"description": "This specifies the workspace absolute path to the webserver root. Used to resolve paths like `/app.js` to files on disk. Shorthand for a pathMapping for \"/\"",
"default": "${workspaceFolder}"
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in Chrome to scripts on disk",
"default": {
"/": "${workspaceFolder}"
}
},
"trace": {
"type": [
"boolean",
"string"
],
"enum": [
"verbose",
true
],
"default": true,
"description": "When 'true', the debugger will log tracing info to a file. When 'verbose', it will also show logs in the console."
},
"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. See README for details.",
"default": {
"webpack:///./*": "${webRoot}/*",
"webpack:///src/*": "${webRoot}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${webRoot}/node_modules/*",
"meteor://💻app/*": "${webRoot}/*"
}
}
}
}
}
}
],
"views": {
"browser-preview": [
{
"id": "targetTree",
"name": "Targets"
}
]
},
"viewsContainers": {
"activitybar": [
{
"icon": "resources/icon.svg",
"id": "browser-preview",
"title": "Browser Preview"
}
]
},
"menus": {
"commandPalette": [
{
"command": "browser-preview.openSharedBrowser",
"when": "false"
}
],
"explorer/context": [
{
"when": "explorerResourceIsFolder == false",
"command": "browser-preview.openPreview",
"group": "2_workspace"
}
]
}
},
"dependencies": {
"@chiragrupani/karma-chromium-edge-launcher": "^2.1.0",
"amplitude": "^4.0.1",
"browser-viewport-device-descriptions": "^1.1.0",
"element-to-source": "^1.0.1",
"event-emitter-enhancer": "^1.0.57",
"eventemitter2": "^5.0.1",
"get-port": "^4.1.0",
"karma-chrome-launcher": "^3.1.0",
"lodash": "^4.17.15",
"mixpanel": "^0.11.0",
"os-name": "^3.1.0",
"public-ip": "^4.0.1",
"puppeteer-core": "^1.11.0",
"re-resizable": "^4.11.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"uuid": "^3.3.2",
"vsls": "^0.3.967"
},
"devDependencies": {
"@types/jest": "23.3.12",
"@types/lodash": "^4.14.119",
"@types/node": "10.12.18",
"@types/react": "16.7.18",
"@types/react-dom": "16.0.11",
"husky": "^1.3.1",
"prettier": "^1.16.1",
"pretty-quick": "^1.10.0",
"react-scripts": "^2.1.5",
"typescript": "3.2.2",
"vscode": "^1.1.36"
},
"resolutions": {
"@types/react": "16.7.18"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"repository": {
"type": "git",
"url": "https://github.com/auchenberg/vscode-browser-preview.git"
},
"scripts": {
"build": "react-scripts build && tsc -p tsconfig.extension.json",
"eject": "react-scripts eject",
"postinstall": "node ./node_modules/vscode/bin/install",
"start": "react-scripts start",
"vscode:prepublish": "react-scripts build && tsc -p tsconfig.extension.json"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}