microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.6.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

package.json

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