microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1950c5e973f28e790e37b16abe5c37f47e3588ed

Branches

Tags

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

Clone

HTTPS

Download ZIP

package.json

553lines · modecode

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