forked from microsoft/vscode-cordova
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
614 lines (614 loc) · 20.9 KB
/
package.json
File metadata and controls
614 lines (614 loc) · 20.9 KB
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
{
"name": "cordova-tools",
"displayName": "Cordova Tools",
"description": "Code-hinting, debugging and integrated commands for Apache Cordova (PhoneGap). With added support for the Ionic framework.",
"keywords": [
"cordova",
"ionic",
"multi-root ready"
],
"version": "1.8.6",
"private": true,
"publisher": "msjsdiag",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#feb943",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-cordova"
},
"bugs": "https://github.com/Microsoft/vscode-cordova/issues",
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
"vscode": "^1.17.1"
},
"categories": [
"Debuggers",
"Snippets",
"Other"
],
"activationEvents": [
"onDebug",
"onCommand:cordova.prepare",
"onCommand:cordova.build",
"onCommand:cordova.run",
"onCommand:ionic.prepare",
"onCommand:ionic.build",
"onCommand:ionic.run",
"onCommand:cordova.simulate.android",
"onCommand:cordova.simulate.ios",
"workspaceContains:config.xml",
"workspaceContains:ionic.config.json"
],
"main": "./out/src/cordova",
"contributes": {
"commands": [
{
"command": "cordova.build",
"title": "Cordova: Build"
},
{
"command": "cordova.run",
"title": "Cordova: Run"
},
{
"command": "cordova.prepare",
"title": "Cordova: Prepare"
},
{
"command": "cordova.simulate.android",
"title": "Cordova: Simulate Android in browser"
},
{
"command": "cordova.simulate.ios",
"title": "Cordova: Simulate iOS in browser"
},
{
"command": "ionic.build",
"title": "Ionic: Build"
},
{
"command": "ionic.run",
"title": "Ionic: Run"
},
{
"command": "ionic.prepare",
"title": "Ionic: Prepare"
}
],
"keybindings": [
{
"command": "cordova.build",
"key": "f6",
"mac": "f6",
"when": "!inDebugMode"
},
{
"command": "cordova.run",
"key": "ctrl+f5",
"mac": "cmd+f5",
"when": "!inDebugMode"
}
],
"debuggers": [
{
"type": "cordova",
"label": "Cordova",
"enableBreakpointsFor": {
"languageIds": [
"javascript",
"typescript",
"typescriptreact"
]
},
"program": "./out/src/debugger/debugCordova.js",
"runtime": "node",
"initialConfigurations": [
{
"name": "Run Android on device",
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "device",
"port": 9222,
"sourceMaps": true,
"cwd": "${workspaceFolder}",
"ionicLiveReload": false
},
{
"name": "Run iOS on device",
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "device",
"port": 9220,
"sourceMaps": true,
"cwd": "${workspaceFolder}",
"ionicLiveReload": false
},
{
"name": "Attach to running android on device",
"type": "cordova",
"request": "attach",
"platform": "android",
"target": "device",
"port": 9222,
"sourceMaps": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Attach to running iOS on device",
"type": "cordova",
"request": "attach",
"platform": "ios",
"target": "device",
"port": 9220,
"sourceMaps": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Run Android on emulator",
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "emulator",
"port": 9222,
"sourceMaps": true,
"cwd": "${workspaceFolder}",
"ionicLiveReload": false
},
{
"name": "Attach to running android on emulator",
"type": "cordova",
"request": "attach",
"platform": "android",
"target": "emulator",
"port": 9222,
"sourceMaps": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Serve to the browser (ionic serve)",
"type": "cordova",
"request": "launch",
"platform": "serve",
"cwd": "${workspaceFolder}",
"devServerAddress": "localhost",
"sourceMaps": true,
"ionicLiveReload": true
},
{
"name": "Simulate Android in browser",
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "chrome",
"simulatePort": 8000,
"livereload": true,
"sourceMaps": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Simulate iOS in browser",
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "chrome",
"simulatePort": 8000,
"livereload": true,
"sourceMaps": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Run Browser",
"type": "cordova",
"request": "launch",
"platform": "browser",
"target": "chrome",
"simulatePort": 8000,
"livereload": true,
"sourceMaps": true,
"cwd": "${workspaceFolder}"
}
],
"configurationSnippets": [
{
"label": "Cordova: Run on Android",
"description": "Run and debug Cordova app on Android device/emulator",
"body": {
"name": "${2:Run android on ${1:device|emulator}}",
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "${1:device|emulator}",
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Run on iOS device",
"description": "Run and debug Cordova app on iOS device",
"body": {
"name": "Run iOS on device",
"type": "cordova",
"request": "launch",
"platform": "ios",
"target": "$device",
"sourceMaps": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Attach to Android",
"description": "Attach to running Cordova app on Android device/emulator",
"body": {
"name": "${2:Attach to android on ${1:device|emulator}}",
"type": "cordova",
"request": "attach",
"platform": "android",
"target": "${1:device|emulator}",
"cwd": "^\"\\${workspaceFolder}\"",
"sourceMaps": true
}
},
{
"label": "Cordova: Attach to iOS device",
"description": "Attach to running Cordova app on iOS device",
"body": {
"name": "Attach to iOS on device",
"type": "cordova",
"request": "attach",
"platform": "ios",
"target": "device",
"cwd": "^\"\\${workspaceFolder}\"",
"sourceMaps": true
}
},
{
"label": "Cordova: Serve",
"description": "Serve to the browser (currently supported only for Ionic)",
"body": {
"name": "${1:Serve to the browser (ionic serve)}",
"type": "cordova",
"request": "launch",
"platform": "serve",
"devServerAddress": "${2:localhost}",
"sourceMaps": true,
"ionicLiveReload": true,
"cwd": "^\"\\${workspaceFolder}\""
}
},
{
"label": "Cordova: Simulate",
"description": "Simulate Cordova Android/iOS application in browser",
"body": {
"name": "${2:Simulate ${1:android|ios} in browser}",
"type": "cordova",
"request": "launch",
"platform": "${1:android|ios}",
"target": "chrome",
"simulatePort": 8000,
"livereload": true,
"cwd": "^\"\\${workspaceFolder}\"",
"sourceMaps": true
}
}
],
"configurationAttributes": {
"launch": {
"required": [
"platform",
"cwd"
],
"properties": {
"platform": {
"type": "string",
"description": "The target platform to run for (either 'ios' or 'android'; other platforms are not currently supported)"
},
"cwd": {
"type": "string",
"description": "The root of the project"
},
"target": {
"type": "string",
"description": "Either 'device', 'emulator', or identifier for a specific device / emulator. For simulation in the browser, you can use 'chrome' or 'chromium'.",
"default": "emulator"
},
"sourceMaps": {
"type": "boolean",
"description": "Use JavaScriptsource maps (if they exist)",
"default": false
},
"port": {
"type": "number",
"description": "Port to forward through to the target for debugging",
"default": 9222
},
"webkitRangeMin": {
"type": "number",
"description": "Start of port range to use for iOS device selection",
"default": 9223
},
"webkitRangeMax": {
"type": "number",
"description": "End of port range to use for iOS device selection",
"default": 9322
},
"attachAttempts": {
"type": "number",
"description": "Number of attempts to make when attaching to an iOS app",
"default": 5
},
"attachDelay": {
"type": "number",
"description": "Time in milliseconds to wait between attempts to attach to an iOS app",
"default": 1000
},
"attachTimeout": {
"type": "number",
"description": "Time in milliseconds to wait before the debugger is attached to the debug session",
"default": 10000
},
"iosDebugProxyPort": {
"type": "number",
"description": "Port to use for connecting to iOS native debugger when launching app",
"default": 9221
},
"appStepLaunchTimeout": {
"type": "number",
"description": "Timeout in milliseconds for individual steps when launching iOS app",
"default": 5000
},
"ionicLiveReload": {
"type": "boolean",
"description": "Whether or not to start an Ionic live reload session",
"default": false
},
"devServerPort": {
"type": "number",
"description": "The port on which Ionic's live reload server should listen"
},
"devServerAddress": {
"type": "string",
"description": "The IP address that Ionic should use for the live reload server"
},
"devServerTimeout": {
"type": "number",
"description": "Timeout in milliseconds for starting the Ionic dev server when serving to the browser or running with Ionic live reload enabled.",
"default": 20000
},
"simulatePort": {
"type": "number",
"description": "Port to use for connecting to the local Cordova Simulate server.",
"default": 8000
},
"livereload": {
"type": "boolean",
"description": "When simulating in the browser, determines whether live reload is enabled"
},
"forceprepare": {
"type": "boolean",
"description": "When simulating in the browser, determines whether a file change triggers a cordova prepare before live reloading"
},
"simulateTempDir": {
"type": "string",
"description": "The directory where temporary browser simulation files are hosted.",
"default": "${workspaceFolder}/.vscode/simulation"
},
"corsproxy": {
"type": "boolean",
"description": "When simulating in the browser, determines whether XHR requests are proxied to appear as though they originate from the same domain as the target.",
"default": true
},
"runArguments": {
"type": "array",
"description": "Run arguments to be passed to 'cordova run/build <platform>' or 'ionic serve' command(Override all other configuration params)"
},
"cordovaExecutable": {
"type": "string",
"description": "Path to local cordova/ionic executable"
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Environment variables passed to the program.",
"default": {}
},
"envFile": {
"type": "string",
"description": "Absolute path to a file containing environment variable definitions.",
"default": "${workspaceFolder}/.env"
},
"skipFiles": {
"type": "array",
"description": "An array of file or folder names, or path globs, to skip when debugging.",
"default": []
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in app webroot 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:///./*": "${cwd}/*",
"webpack:///src/*": "${cwd}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${cwd}/node_modules/*",
"./*": "${cwd}/*"
}
}
}
},
"attach": {
"required": [
"platform",
"cwd"
],
"properties": {
"platform": {
"type": "string",
"description": "The platform to run on"
},
"cwd": {
"type": "string",
"description": "The root of the project"
},
"target": {
"type": "string",
"description": "either 'device', 'emulator', or identifier for a specific device / emulator",
"default": "emulator"
},
"sourceMaps": {
"type": "boolean",
"description": "Use JavaScriptsource maps (if they exist)",
"default": false
},
"port": {
"type": "number",
"description": "Port to use for remote debugging.",
"default": 9222
},
"webkitRangeMin": {
"type": "number",
"description": "Start of port range to use for iOS device selection",
"default": 9223
},
"webkitRangeMax": {
"type": "number",
"description": "End of port range to use for iOS device selection",
"default": 9322
},
"attachAttempts": {
"type": "number",
"description": "Number of attempts to make when attaching to an iOS app",
"default": 5
},
"attachDelay": {
"type": "number",
"description": "Time in milliseconds to wait between attempts to attach to an iOS app",
"default": 1000
},
"attachTimeout": {
"type": "number",
"description": "Time in milliseconds to wait before the debugger is attached to the debug session",
"default": 10000
},
"skipFiles": {
"type": "array",
"description": "An array of file or folder names, or path globs, to skip when debugging.",
"default": []
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in app webroot to scripts on disk",
"default": {
"/": "${workspaceFolder}"
}
},
"ionicLiveReload": {
"type": "boolean",
"description": "Set this to true if you are going to attach to Ionic 4 app running with --livereload option",
"default": false
},
"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:///./*": "${cwd}/*",
"webpack:///src/*": "${cwd}/*",
"webpack:///*": "*",
"webpack:///./~/*": "${cwd}/node_modules/*",
"./*": "${cwd}/*"
}
}
}
}
}
}
],
"configuration": [
{
"title": "Cordova Tools",
"properties": {
"cordova.runArguments": {
"type": "array",
"default": [],
"description": "Run arguments to be passed to 'cordova run/build <platform>' or 'ionic serve' command",
"scope": "resource"
},
"cordova.cordovaExecutable": {
"type": "string",
"default": "",
"description": "Path to local cordova/ionic executable",
"scope": "resource"
},
"cordova.env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Environment variables passed to the program.",
"default": {},
"scope": "resource"
},
"cordova.envFile": {
"type": "string",
"description": "Absolute path to a file containing environment variable definitions.",
"scope": "resource"
}
}
}
]
},
"scripts": {
"compile": "node ./node_modules/gulp/bin/gulp",
"test": "node ./node_modules/mocha/bin/mocha --recursive -u bdd ./out/test/debugger",
"postinstall": "node ./node_modules/vscode/bin/install",
"vscode:prepublish": "gulp"
},
"dependencies": {
"cordova-simulate": "^0.6.6",
"elementtree": "^0.1.6",
"plist": "^2.0.1",
"q": "^1.4.1",
"semver": "5.1.0",
"socket.io-client": "^2.2.0",
"vscode-chrome-debug-core": "^6.7.46",
"vscode-debugadapter": "^1.34.0",
"vscode-extension-telemetry": "0.0.5",
"winreg": "0.0.13",
"xcode": "^2.0.0"
},
"devDependencies": {
"@types/fancy-log": "^1.3.1",
"@types/mocha": "^5.2.5",
"@types/node": "^10.14.4",
"@types/q": "^1.0.3",
"@types/rimraf": "^2.0.2",
"@types/semver": "^5.5.0",
"@types/socket.io-client": "^1.4.29",
"del": "^2.2.2",
"fancy-log": "^1.3.3",
"gulp": "^4.0.0",
"gulp-mocha": "^6.0.0",
"gulp-sourcemaps": "^1.12.1",
"gulp-tslint": "^8.1.2",
"gulp-typescript": "^5.0.1",
"mockery": "^1.4.0",
"rimraf": "^2.6.3",
"should": "^13.2.1",
"tslint": "^5.6.0",
"typescript": "^2.9.2",
"vsce": "^1.65.0",
"vscode": "^1.1.35"
}
}