forked from ritwickdey/vscode-live-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
365 lines (365 loc) · 11.2 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
{
"name": "LiveServer",
"displayName": "Live Server",
"description": "Launch a development local Server with live reload feature for static & dynamic pages",
"version": "5.7.9",
"publisher": "ritwickdey",
"author": {
"name": "Ritwick Dey",
"email": "[email protected]",
"url": "http://twitter.com/Dey_Ritwick"
},
"engines": {
"vscode": "^1.51.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": [
"onStartupFinished"
],
"main": "./out/src/extension.js",
"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.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 behavior 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 -p ./",
"test": "run-s test:*",
"test:lint": "tslint --project .",
"test:unit": "node ./out/test/runTest.js",
"test:e2e": "wdio run ./test/wdio.conf.ts",
"precommit": "npm run test:lint",
"prepush": "npm run test:lint",
"watch": "tsc -watch -p ./"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit",
"pre-push": "npm run prepush"
}
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/node": "^17.0.6",
"@types/vscode": "^1.51.0",
"@vscode/test-electron": "^2.0.1",
"@wdio/cli": "^7.19.3",
"@wdio/local-runner": "^7.19.3",
"@wdio/mocha-framework": "^7.19.3",
"@wdio/spec-reporter": "^7.19.1",
"glob": "^7.2.0",
"husky": "^1.2.1",
"mocha": "^9.2.2",
"npm-run-all": "^4.1.5",
"semver": "^7.3.6",
"ts-node": "^10.7.0",
"tslint": "^6.1.3",
"typescript": "^4.5.4",
"vsce": "^2.7.0",
"wdio-vscode-service": "^2.0.1",
"es5-ext": "0.10.53"
},
"dependencies": {
"http-shutdown": "^1.2.0",
"ips": "^2.1.3",
"live-server": "file:lib\\live-server",
"opn": "^6.0.0",
"vsls": "^0.3.967"
},
"overrides": {
"es5-ext": "0.10.53"
},
"announcement": {
"onVersion": "5.7.9",
"message": "[NEW] [email protected]: Activation load time improved"
}
}