microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
14fc31721677a63847ccda02e588e2b4bea71e57

Branches

Tags

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

Clone

HTTPS

Download ZIP

package.json

565lines · modecode

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