microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1c81f4e7dc48c4e61d8c79bbce29eb416a2707e0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

package.json

625lines · modecode

1{
2 "name": "vscode-react-native",
3 "displayName": "React Native Tools",
4 "version": "0.6.0",
5 "private": true,
6 "publisher": "vsmobile",
7 "icon": "images/icon.png",
8 "galleryBanner": {
9 "color": "#3B3738",
10 "theme": "dark"
11 },
12 "description": "Code-hinting, debugging and integrated commands for React Native",
13 "keywords": [
14 "react-native",
15 "multi-root ready"
16 ],
17 "bugs": "https://github.com/Microsoft/vscode-react-native/issues",
18 "license": "SEE LICENSE IN LICENSE.txt",
19 "repository": {
20 "type": "git",
21 "url": "https://github.com/Microsoft/vscode-react-native"
22 },
23 "engines": {
24 "vscode": "^1.17.1"
25 },
26 "categories": [
27 "Debuggers",
28 "Other"
29 ],
30 "activationEvents": [
31 "*"
32 ],
33 "main": "./src/extension/rn-extension",
34 "contributes": {
35 "commands": [
36 {
37 "command": "reactNative.runAndroidSimulator",
38 "title": "React Native: Run Android on Simulator"
39 },
40 {
41 "command": "reactNative.runAndroidDevice",
42 "title": "React Native: Run Android on Device"
43 },
44 {
45 "command": "reactNative.runIosSimulator",
46 "title": "React Native: Run iOS on Simulator"
47 },
48 {
49 "command": "reactNative.runIosDevice",
50 "title": "React Native: Run iOS on Device"
51 },
52 {
53 "command": "reactNative.startPackager",
54 "title": "React Native: Start Packager"
55 },
56 {
57 "command": "reactNative.startExponentPackager",
58 "title": "React Native: Start Exponent Packager"
59 },
60 {
61 "command": "reactNative.stopPackager",
62 "title": "React Native: Stop Packager"
63 },
64 {
65 "command": "reactNative.restartPackager",
66 "title": "React Native: Restart Packager"
67 },
68 {
69 "command": "reactNative.publishToExpHost",
70 "title": "React Native: Publish to Exponent"
71 },
72 {
73 "command": "reactNative.showDevMenu",
74 "title": "React Native: Show Dev Menu"
75 },
76 {
77 "command": "reactNative.reloadApp",
78 "title": "React Native: Reload App"
79 },
80 {
81 "command": "reactNative.appcenter.login",
82 "title": "Login",
83 "category": "React Native Code Push"
84 },
85 {
86 "command": "reactNative.appcenter.logout",
87 "title": "Logout",
88 "category": "React Native Code Push"
89 },
90 {
91 "command": "reactNative.appcenter.whoami",
92 "title": "WhoAmI",
93 "category": "React Native Code Push"
94 },
95 {
96 "command": "reactNative.appcenter.setcurrentapp",
97 "title": "Set Current App",
98 "category": "React Native Code Push"
99 },
100 {
101 "command": "reactNative.appcenter.getcurrentapp",
102 "title": "Get Current App",
103 "category": "React Native Code Push"
104 },
105 {
106 "command": "reactNative.appcenter.setcurrentdeployment",
107 "title": "Set Current Deployment",
108 "category": "React Native Code Push"
109 },
110 {
111 "command": "reactNative.appcenter.releasereact",
112 "title": "Release React",
113 "category": "React Native Code Push"
114 },
115 {
116 "command": "reactNative.appcenter.switchMandatoryPropForRelease",
117 "title": "Switch Code Push release mandatory property",
118 "category": "React Native Code Push"
119 },
120 {
121 "command": "reactNative.appcenter.setTargetBinaryVersion",
122 "title": "Set Code Push release target binary verison",
123 "category": "React Native Code Push"
124 },
125 {
126 "command": "reactNative.appcenter.showmenu",
127 "title": "Show Menu",
128 "category": "React Native Code Push"
129 }
130 ],
131 "debuggers": [
132 {
133 "type": "reactnative",
134 "label": "React Native",
135 "program": "./src/debugger/reactNativeDebugEntryPoint.js",
136 "runtime": "node",
137 "enableBreakpointsFor": {
138 "languageIds": [
139 "javascript",
140 "typescript",
141 "javascriptreact",
142 "typescriptreact"
143 ]
144 },
145 "initialConfigurations": [
146 {
147 "name": "Debug Android",
148 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
149 "type": "reactnative",
150 "request": "launch",
151 "platform": "android",
152 "sourceMaps": true,
153 "outDir": "${workspaceRoot}/.vscode/.react"
154 },
155 {
156 "name": "Debug iOS",
157 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
158 "type": "reactnative",
159 "request": "launch",
160 "platform": "ios",
161 "sourceMaps": true,
162 "outDir": "${workspaceRoot}/.vscode/.react"
163 },
164 {
165 "name": "Attach to packager",
166 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
167 "type": "reactnative",
168 "request": "attach",
169 "sourceMaps": true,
170 "outDir": "${workspaceRoot}/.vscode/.react"
171 },
172 {
173 "name": "Debug in Exponent",
174 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
175 "type": "reactnative",
176 "request": "launch",
177 "platform": "exponent",
178 "sourceMaps": true,
179 "outDir": "${workspaceRoot}/.vscode/.react"
180 }
181 ],
182 "configurationSnippets": [
183 {
184 "label": "React Native: Debug Android",
185 "description": "A new configuration for launching react-native app on android",
186 "body": {
187 "name": "Debug Android",
188 "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"",
189 "type": "reactnative",
190 "request": "launch",
191 "platform": "android",
192 "sourceMaps": true,
193 "outDir": "^\"\\${workspaceRoot}/.vscode/.react\""
194 }
195 },
196 {
197 "label": "React Native: Debug iOS",
198 "description": "A new configuration for launching react-native app on iOS",
199 "body": {
200 "name": "Debug iOS",
201 "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"",
202 "type": "reactnative",
203 "request": "launch",
204 "platform": "ios",
205 "sourceMaps": true,
206 "outDir": "^\"\\${workspaceRoot}/.vscode/.react\""
207 }
208 },
209 {
210 "label": "React Native: Attach to packager",
211 "description": "A new configuration for attaching to packager",
212 "body": {
213 "name": "Attach to packager",
214 "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"",
215 "type": "reactnative",
216 "request": "attach",
217 "sourceMaps": true,
218 "outDir": "^\"\\${workspaceRoot}/.vscode/.react\""
219 }
220 },
221 {
222 "label": "React Native: Debug in Exponent",
223 "description": "A new configuration for launching exponent app",
224 "body": {
225 "name": "Debug in Exponent",
226 "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"",
227 "type": "reactnative",
228 "request": "launch",
229 "platform": "exponent",
230 "sourceMaps": true,
231 "outDir": "^\"\\${workspaceRoot}/.vscode/.react\""
232 }
233 }
234 ],
235 "configurationAttributes": {
236 "attach": {
237 "required": [
238 "program"
239 ],
240 "properties": {
241 "program": {
242 "type": "string",
243 "description": "The path to launchReactNative.js in the vscode folder"
244 },
245 "sourceMaps": {
246 "type": "boolean",
247 "description": "Whether to use JavaScript source maps to map the generated bundled code back to its original sources",
248 "default": false
249 },
250 "outDir": {
251 "type": "string",
252 "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"",
253 "default": null
254 },
255 "sourceMapPathOverrides": {
256 "type": "object",
257 "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."
258 },
259 "trace": {
260 "type": "string",
261 "enum": [
262 "verbose",
263 "log",
264 "warn",
265 "error",
266 "stop"
267 ],
268 "default": "log",
269 "description": "Setup logging level in debugger."
270 },
271 "address": {
272 "type": "string",
273 "description": "TCP/IP address of debug port. Default is 'localhost'.",
274 "default": "localhost"
275 },
276 "port": {
277 "type": "string",
278 "description": "Debug port to attach to. Default is 8081.",
279 "default": "8081"
280 },
281 "remoteRoot": {
282 "type": "string",
283 "description": "The source root of the remote host.",
284 "default": null
285 },
286 "localRoot": {
287 "type": "string",
288 "description": "The local source root that corresponds to the 'remoteRoot'.",
289 "default": "${workspaceRoot}"
290 },
291 "skipFiles": {
292 "type": "array",
293 "description": "An array of file or folder names, or glob patterns, to skip when debugging.",
294 "items": {
295 "type": "string"
296 },
297 "default": []
298 }
299 }
300 },
301 "launch": {
302 "required": [
303 "program",
304 "platform"
305 ],
306 "properties": {
307 "platform": {
308 "type": "string",
309 "enum": [
310 "ios",
311 "android",
312 "exponent",
313 "windows"
314 ],
315 "description": "The platform to target"
316 },
317 "program": {
318 "type": "string",
319 "description": "The path to launchReactNative.js in the vscode folder"
320 },
321 "target": {
322 "anyOf": [
323 {
324 "type": "string",
325 "enum": [
326 "device",
327 "simulator"
328 ]
329 },
330 {
331 "type": "string"
332 }
333 ],
334 "default": "simulator",
335 "description": "Device target to run on (either device or simulator)"
336 },
337 "sourceMaps": {
338 "type": "boolean",
339 "description": "Whether to use JavaScript source maps to map the generated bundled code back to its original sources",
340 "default": false
341 },
342 "logCatArguments": {
343 "type": "array",
344 "description": "Arguments to be used for LogCat (The LogCat output will appear on an Output Channel). It can either be an array such as: [\":S\", \"ReactNative:V\", \"ReactNativeJS:V\"] or a string such as \":S ReactNative:V ReactNativeJS:V\"",
345 "default": [
346 "*:S",
347 "ReactNative:V",
348 "ReactNativeJS:V"
349 ]
350 },
351 "outDir": {
352 "type": "string",
353 "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"",
354 "default": null
355 },
356 "runArguments": {
357 "type": "array",
358 "description": "Run arguments to be passed to 'react-native run-<platform>' command(Override all other configuration params)"
359 },
360 "env": {
361 "type": "object",
362 "additionalProperties": {
363 "type": "string"
364 },
365 "description": "Environment variables passed to the program.",
366 "default": {}
367 },
368 "envFile": {
369 "type": "string",
370 "description": "Absolute path to a file containing environment variable definitions.",
371 "default": "${workspaceFolder}/.env"
372 },
373 "variant": {
374 "type": "string",
375 "description": "A variant to be passed to react-native run-android, e.g. 'devDebug' to specify --variant=devDebug"
376 },
377 "scheme": {
378 "type": "string",
379 "description": "A scheme name to be passed to react-native run-ios, e.g. 'devDebug' to specify --scheme=devDebug"
380 },
381 "skipFiles": {
382 "type": "array",
383 "description": "An array of file or folder names, or glob patterns, to skip when debugging.",
384 "items": {
385 "type": "string"
386 },
387 "default": []
388 },
389 "trace": {
390 "type": "string",
391 "enum": [
392 "verbose",
393 "log",
394 "warn",
395 "error",
396 "stop"
397 ],
398 "default": "log",
399 "description": "Setup logging level in debugger."
400 }
401 }
402 }
403 }
404 }
405 ],
406 "configuration": {
407 "type": "object",
408 "title": "React-Native configuration",
409 "properties": {
410 "react-native.ios.runArguments.simulator": {
411 "description": "Run arguments to be passed to 'react-native run-ios' command",
412 "type": "array",
413 "default": [],
414 "scope": "resource"
415 },
416 "react-native.ios.runArguments.device": {
417 "description": "Run arguments to be passed to 'react-native run-ios' command",
418 "type": "array",
419 "default": [],
420 "scope": "resource"
421 },
422 "react-native.ios.env.simulator": {
423 "type": "object",
424 "additionalProperties": {
425 "type": "string"
426 },
427 "description": "Environment variables passed to the program.",
428 "default": {},
429 "scope": "resource"
430 },
431 "react-native.ios.env.device": {
432 "type": "object",
433 "additionalProperties": {
434 "type": "string"
435 },
436 "description": "Environment variables passed to the program.",
437 "default": {},
438 "scope": "resource"
439 },
440 "react-native.ios.envFile.simulator": {
441 "type": "string",
442 "description": "Absolute path to a file containing environment variable definitions.",
443 "scope": "resource"
444 },
445 "react-native.ios.envFile.device": {
446 "type": "string",
447 "description": "Absolute path to a file containing environment variable definitions.",
448 "scope": "resource"
449 },
450 "react-native.android.runArguments.simulator": {
451 "description": "Run arguments to be passed to 'react-native run-android' command",
452 "type": "array",
453 "default": [],
454 "scope": "resource"
455 },
456 "react-native.android.runArguments.device": {
457 "description": "Run arguments to be passed to 'react-native run-android' command",
458 "type": "array",
459 "default": [],
460 "scope": "resource"
461 },
462 "react-native.android.env.simulator": {
463 "type": "object",
464 "additionalProperties": {
465 "type": "string"
466 },
467 "description": "Environment variables passed to the program.",
468 "default": {},
469 "scope": "resource"
470 },
471 "react-native.android.env.device": {
472 "type": "object",
473 "additionalProperties": {
474 "type": "string"
475 },
476 "description": "Environment variables passed to the program.",
477 "default": {},
478 "scope": "resource"
479 },
480 "react-native.android.envFile.simulator": {
481 "type": "string",
482 "description": "Absolute path to a file containing environment variable definitions.",
483 "scope": "resource"
484 },
485 "react-native.android.envFile.device": {
486 "type": "string",
487 "description": "Absolute path to a file containing environment variable definitions.",
488 "scope": "resource"
489 },
490 "react-native.packager.port": {
491 "description": "React-native packager port",
492 "type": "number",
493 "default": 8081,
494 "scope": "resource"
495 },
496 "react-native-tools.projectRoot": {
497 "description": "Subfolder in which the react-native project is located",
498 "type": "string",
499 "scope": "resource",
500 "default": ""
501 },
502 "react-native-tools.logLevel": {
503 "description": "Logging level in extension",
504 "type": "enum",
505 "enum": [
506 "Trace",
507 "Debug",
508 "Info",
509 "Warning",
510 "Error",
511 "None"
512 ],
513 "default": "Info",
514 "scope": "resource"
515 },
516 "react-native-tools.appcenter.loginendpoint": {
517 "description": "Endpoint to login to appcenter",
518 "type": "string",
519 "default": "https://appcenter.ms/cli-login",
520 "scope": "resource"
521 },
522 "react-native-tools.appcenter.api.endpoint": {
523 "description": "API Endpoint to appcenter",
524 "type": "string",
525 "default": "https://api.appcenter.ms",
526 "scope": "resource"
527 },
528 "react-native-tools.appcenter.legacycodepushservice": {
529 "description": "Legacy codepush service endpoint",
530 "type": "string",
531 "default": "https://codepush-management.azurewebsites.net/",
532 "scope": "resource"
533 },
534 "react-native-tools.appcenter.legacycodepushserviceenabled": {
535 "description": "Select if legacy service is used for CodePush release",
536 "type": "boolean",
537 "default": true,
538 "scope": "resource"
539 }
540 }
541 }
542 },
543 "scripts": {
544 "start": "node node_modules/react-native/local-cli/cli.js start",
545 "compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
546 "vscode:prepublish": "gulp",
547 "test": "node ./node_modules/vscode/bin/test",
548 "preinstall": "npm install --prefix ./src/extension/appcenter/lib/app-center-node-client",
549 "postinstall": "node ./node_modules/vscode/bin/install"
550 },
551 "dependencies": {
552 "app-center-node-client": "file:src/extension/appcenter/lib/app-center-node-client",
553 "codepush-node-sdk": "file:src/extension/appcenter/lib/codepush-node-sdk/dist",
554 "extract-opts": "2.2.0",
555 "flatten-source-map": "0.0.2",
556 "lodash": "^4.16.4",
557 "mkdirp": "^0.5.1",
558 "ms-rest": "^1.15.0",
559 "noice-json-rpc": "^1.0.2",
560 "open": "0.0.5",
561 "opener": "^1.4.3",
562 "options": "0.0.6",
563 "q": "1.4.1",
564 "qr-image": "^3.2.0",
565 "qs": "^6.4.0",
566 "request": "^2.83.0",
567 "rx-lite": "^4.0.8",
568 "semver": "5.1.0",
569 "source-map": "0.5.2",
570 "source-map-resolve": "^0.5.0",
571 "strip-json-comments": "2.0.1",
572 "typechecker": "2.0.8",
573 "ultron": "1.0.2",
574 "vscode-chrome-debug-core": "^3.17.3",
575 "vscode-debugadapter": "^1.23.0",
576 "vscode-debugprotocol": "^1.23.0",
577 "vscode-extension-telemetry": "0.0.5",
578 "ws": "^3.2.0"
579 },
580 "devDependencies": {
581 "@types/lodash": "^4.14.74",
582 "@types/mkdirp": "^0.5.1",
583 "@types/mocha": "^2.2.40",
584 "@types/mock-fs": "^3.6.30",
585 "@types/node": "^6.0.65",
586 "@types/open": "^0.0.29",
587 "@types/opener": "^1.4.0",
588 "@types/qr-image": "^3.2.0",
589 "@types/qs": "^6.5.0",
590 "@types/request": "^2.47.0",
591 "@types/rx-lite": "4.0.4",
592 "@types/shelljs": "^0.7.0",
593 "@types/source-map": "0.5.2",
594 "@types/source-map-support": "^0.2.28",
595 "@types/websocket": "0.0.33",
596 "@types/ws": "^0.0.39",
597 "del": "^2.2.0",
598 "gulp": "^3.9.1",
599 "gulp-istanbul": "^1.1.2",
600 "gulp-mocha": "^3.0.1",
601 "gulp-preprocess": "^2.0.0",
602 "gulp-sourcemaps": "^1.6.0",
603 "gulp-tslint": "^8.1.2",
604 "gulp-typescript": "^3.1.5",
605 "gulp-util": "^3.0.7",
606 "isparta": "^4.0.0",
607 "minimist": "^1.2.0",
608 "mocha": "^3.2.0",
609 "mocha-teamcity-reporter": "^1.0.0",
610 "mock-fs": "^4.4.1",
611 "remap-istanbul": "^0.9.5",
612 "run-sequence": "^1.2.2",
613 "should": "^8.3.0",
614 "sinon": "^1.17.3",
615 "source-map-support": "^0.4.0",
616 "through2": "^2.0.1",
617 "tslint": "^5.6.0",
618 "typescript": "2.4.2",
619 "vsce": "^1.3.0",
620 "vscode": "^1.1.6"
621 },
622 "extensionDependencies": [
623 "ms-vscode.node-debug2"
624 ]
625}
626