forked from ritwickdey/vscode-live-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
355 lines (355 loc) · 11 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
{
"name": "LiveServer",
"displayName": "Live Server",
"description": "Launch a development local Server with live reload feature for static & dynamic pages",
"version": "5.6.1",
"publisher": "ritwickdey",
"author": {
"name": "Ritwick Dey",
"email": "[email protected]",
"url": "http://twitter.com/Dey_Ritwick"
},
"engines": {
"vscode": "^1.20.0"
},
"categories": [
"Other"
],
"keywords": [
"html preview",
"live preview",
"live reload",
"svg preview",
"open in browser",
"multi-root ready"
],
"preview": false,
"galleryBanner": {
"color": "#41205f",
"theme": "dark"
},
"activationEvents": [
"*"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "extension.liveServer.goOffline",
"title": "Stop Live Server",
"category": "Live Server"
},
{
"command": "extension.liveServer.goOnline",
"title": "Open with Live Server",
"category": "Live Server"
},
{
"command": "extension.liveServer.changeWorkspace",
"title": "Change Live Server workspace",
"category": "Live Server"
}
],
"keybindings": [
{
"command": "extension.liveServer.goOffline",
"key": "alt+L alt+C",
"when": "editorTextFocus",
"mac": "cmd+L cmd+C"
},
{
"command": "extension.liveServer.goOnline",
"key": "alt+L alt+O",
"when": "editorTextFocus",
"mac": "cmd+L cmd+O"
}
],
"menus": {
"editor/context": [
{
"command": "extension.liveServer.goOnline",
"group": "myGrp@liveServer",
"when": "resourceLangId == html"
},
{
"command": "extension.liveServer.goOffline",
"group": "myGrp@liveServer",
"when": "resourceLangId == html"
},
{
"command": "extension.liveServer.goOnline",
"group": "myGrp@liveServer",
"when": "resourceLangId == xml"
}
],
"explorer/context": [
{
"command": "extension.liveServer.goOnline",
"group": "navigation@-LiveServer",
"when": "resourceLangId == html"
},
{
"command": "extension.liveServer.goOnline",
"group": "navigation@-LiveServer",
"when": "resourceLangId == xml"
}
]
},
"configuration": {
"title": "Live Server Config",
"properties": {
"liveServer.settings.port": {
"type": [
"number"
],
"default": 5500,
"minimum": 0,
"maximum": 65535,
"description": "Set Custom Port Number of Live Server. Set 0 if you want random port."
},
"liveServer.settings.root": {
"type": [
"string"
],
"default": "/",
"pattern": "/|/[^\\/]",
"description": "Set Custom root of Live Server. \nTo change root the the server to sub folder of workspace, use '/' and relative path from workspace. \nExample: /subfolder1/subfolder2"
},
"liveServer.settings.useBrowserPreview": {
"type": "boolean",
"default": false,
"description": "Open in Browser Preview inside VS Code, instead of default browser"
},
"liveServer.settings.CustomBrowser": {
"type": [
"string",
"null"
],
"default": null,
"enum": [
"chrome",
"chrome:PrivateMode",
"firefox",
"firefox:PrivateMode",
"microsoft-edge",
"blisk",
null
],
"description": "Specify custom browser settings for Live Server. \nBy Default it will open your default favorite browser."
},
"liveServer.settings.ChromeDebuggingAttachment": {
"type": [
"boolean"
],
"default": false,
"description": "Enable Chrome Debugging Attachment to Live Server at Debuging Port 9222.\n NOTE: You have to install 'Debugger for Chrome' \nIf the value is true, Select 'Attach to Chrome' from Debug Window to start debugging. \n\n CAUTION: If it is true, 'Launch Chrome against localhost' may not work."
},
"liveServer.settings.AdvanceCustomBrowserCmdLine": {
"type": [
"string",
"null"
],
"default": null,
"description": "Note: If it is not Null, It will override CustomBrowser and ChromeDebuggingAttachment settings.\n\n Examples : \nchrome --incognito --headless --remote-debugging-port=9222 \n C:\\\\Program Files\\\\Firefox Developer Edition\\\\firefox.exe --private-window"
},
"liveServer.settings.showOnStatusbar": {
"type": "boolean",
"default": true,
"description": "Change this to false if you don't want the button to show in the statusbar"
},
"liveServer.settings.NoBrowser": {
"type": "boolean",
"default": false,
"description": "If it is true live server will start without browser opened."
},
"liveServer.settings.ignoreFiles": {
"type": "array",
"default": [
".vscode/**",
"**/*.scss",
"**/*.sass",
"**/*.ts"
],
"description": "To ignore specific file changes"
},
"liveServer.settings.mount": {
"type": "array",
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "string"
}
},
"default": [],
"description": "Mount a directory to a route. Such as [['/components', './node_modules']]"
},
"liveServer.settings.donotShowInfoMsg": {
"type": "boolean",
"default": false,
"description": "To disable information pop up messages."
},
"liveServer.settings.donotVerifyTags": {
"type": "boolean",
"default": false,
"description": "To turn off prompt warning message if body or head or other supporting tag is missing in your HTML."
},
"liveServer.settings.host": {
"type": "string",
"default": "127.0.0.1",
"description": "To switch between localhost or 127.0.0.1 or anything else. Default is 127.0.0.1"
},
"liveServer.settings.useLocalIp": {
"type": "boolean",
"default": false,
"description": "Use local IP as host"
},
"liveServer.settings.proxy": {
"type": "object",
"default": {
"enable": false,
"baseUri": "/",
"proxyUri": "http://127.0.0.1:80"
},
"properties": {
"enable": {
"type": "boolean",
"default": false,
"description": "Make it true to enable the feature."
},
"baseUri": {
"type": "string",
"default": "/",
"pattern": ""
},
"proxyUri": {
"type": "string",
"default": "http://127.0.0.1:80",
"pattern": "(^http[s]?://)(.[^(\\|\\s)]+)$"
}
},
"required": [
"enable",
"baseUri",
"proxyUri"
],
"additionalProperties": false,
"description": "To Setup Proxy"
},
"liveServer.settings.useWebExt": {
"type": "boolean",
"default": false,
"description": "You have to install a browser extension. That will be works for your dynamic pages (like PHP)."
},
"liveServer.settings.wait": {
"type": "number",
"default": 100,
"description": "Delay before live reloading. Value in milliseconds. Default is 100"
},
"liveServer.settings.fullReload": {
"type": "boolean",
"default": false,
"description": "By Default Live Server inject CSS changes without full reloading of browser. You can change this behviour by making this setting as `true`"
},
"liveServer.settings.https": {
"type": "object",
"default": {
"enable": false,
"cert": "",
"key": "",
"passphrase": ""
},
"properties": {
"enable": {
"type": "boolean",
"default": false,
"description": "Make it true to enable it."
},
"cert": {
"type": "string",
"default": "",
"description": "Add full path certificate."
},
"key": {
"type": "string",
"default": "",
"description": "Add full path key"
},
"passphrase": {
"type": "string",
"default": "",
"description": "Add Pass Phrase."
}
},
"required": [
"enable",
"cert",
"key",
"passphrase"
],
"additionalProperties": false,
"description": "Setup https configuration"
},
"liveServer.settings.file": {
"type": "string",
"default": "",
"description": "When set, serve this file (server root relative) for every 404 (useful for single-page applications)"
},
"liveServer.settings.multiRootWorkspaceName": {
"type": "string",
"default": null,
"description": "This the entry point of server when you're in multiroot workspace"
}
}
}
},
"license": "MIT",
"icon": "images/icon.png",
"bugs": {
"url": "https://github.com/ritwickdey/vscode-live-server/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/ritwickdey/vscode-live-server.git"
},
"homepage": "https://ritwickdey.github.io/vscode-live-server/",
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test",
"lint": "tslint --project .",
"precommit": "npm run lint",
"prepush": "npm run lint"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit",
"pre-push": "npm run prepush"
}
},
"devDependencies": {
"@types/mocha": "^2.2.48",
"@types/node": "^9.6.40",
"husky": "^1.2.1",
"mocha": "^5.0.4",
"tslint": "^5.11.0",
"typescript": "^2.7.2",
"vscode": "^1.1.26",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0"
},
"dependencies": {
"http-shutdown": "^1.2.0",
"ips": "^2.1.3",
"live-server": "file:lib\\live-server",
"opn": "^5.4.0",
"vsls": "^0.3.967"
},
"announcement": {
"onVersion": "5.6.1",
"message": "[NEW] [email protected]: BrowserPreview integration, auto fallback to random port & fixes."
}
}