microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
f79df46ff8be62d0740fdf147ce5fe1fafecd724

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.6",
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 "workspaceContains:./node_modules/react-native/package.json",
33 "onCommand:reactNative.runAndroidSimulator",
34 "onCommand:reactNative.runAndroidDevice",
35 "onCommand:reactNative.runIosSimulator",
36 "onCommand:reactNative.runIosDevice",
37 "onCommand:reactNative.startPackager",
38 "onCommand:reactNative.startExponentPackager",
39 "onCommand:reactNative.stopPackager",
40 "onCommand:reactNative.restartPackager",
41 "onCommand:reactNative.publishToExpHost",
42 "onCommand:reactNative.showDevMenu",
43 "onCommand:reactNative.reloadApp"
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.startPackager",
66 "title": "React Native: Start Packager"
67 },
68 {
69 "command": "reactNative.startExponentPackager",
70 "title": "React Native: Start Exponent 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 "debuggers": [
94 {
95 "type": "reactnative",
96 "label": "React Native",
97 "program": "./src/debugger/reactNativeDebugEntryPoint.js",
98 "runtime": "node",
99 "enableBreakpointsFor": {
100 "languageIds": [
101 "javascript",
102 "typescript",
103 "javascriptreact",
104 "typescriptreact"
105 ]
106 },
107 "initialConfigurations": [
108 {
109 "name": "Debug Android",
110 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
111 "type": "reactnative",
112 "request": "launch",
113 "platform": "android",
114 "sourceMaps": true,
115 "outDir": "${workspaceRoot}/.vscode/.react"
116 },
117 {
118 "name": "Debug iOS",
119 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
120 "type": "reactnative",
121 "request": "launch",
122 "platform": "ios",
123 "sourceMaps": true,
124 "outDir": "${workspaceRoot}/.vscode/.react"
125 },
126 {
127 "name": "Attach to packager",
128 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
129 "type": "reactnative",
130 "request": "attach",
131 "sourceMaps": true,
132 "outDir": "${workspaceRoot}/.vscode/.react"
133 },
134 {
135 "name": "Debug in Exponent",
136 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
137 "type": "reactnative",
138 "request": "launch",
139 "platform": "exponent",
140 "sourceMaps": true,
141 "outDir": "${workspaceRoot}/.vscode/.react"
142 }
143 ],
144 "configurationSnippets": [
145 {
146 "label": "React Native: Debug Android",
147 "description": "A new configuration for launching react-native app on android",
148 "body": {
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 {
159 "label": "React Native: Debug iOS",
160 "description": "A new configuration for launching react-native app on iOS",
161 "body": {
162 "name": "Debug iOS",
163 "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"",
164 "type": "reactnative",
165 "request": "launch",
166 "platform": "ios",
167 "sourceMaps": true,
168 "outDir": "^\"\\${workspaceRoot}/.vscode/.react\""
169 }
170 },
171 {
172 "label": "React Native: Attach to packager",
173 "description": "A new configuration for attaching to packager",
174 "body": {
175 "name": "Attach to packager",
176 "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"",
177 "type": "reactnative",
178 "request": "attach",
179 "sourceMaps": true,
180 "outDir": "^\"\\${workspaceRoot}/.vscode/.react\""
181 }
182 },
183 {
184 "label": "React Native: Debug in Exponent",
185 "description": "A new configuration for launching exponent app",
186 "body": {
187 "name": "Debug in Exponent",
188 "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"",
189 "type": "reactnative",
190 "request": "launch",
191 "platform": "exponent",
192 "sourceMaps": true,
193 "outDir": "^\"\\${workspaceRoot}/.vscode/.react\""
194 }
195 }
196 ],
197 "configurationAttributes": {
198 "attach": {
199 "required": [
200 "program"
201 ],
202 "properties": {
203 "program": {
204 "type": "string",
205 "description": "The path to launchReactNative.js in the vscode folder"
206 },
207 "sourceMaps": {
208 "type": "boolean",
209 "description": "Whether to use JavaScript source maps to map the generated bundled code back to its original sources",
210 "default": false
211 },
212 "outDir": {
213 "type": "string",
214 "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"",
215 "default": null
216 },
217 "sourceMapPathOverrides": {
218 "type": "object",
219 "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."
220 },
221 "trace": {
222 "type": "string",
223 "enum": [
224 "verbose",
225 "log",
226 "warn",
227 "error",
228 "stop"
229 ],
230 "default": "log",
231 "description": "Setup logging level in debugger."
232 },
233 "address": {
234 "type": "string",
235 "description": "TCP/IP address of debug port. Default is 'localhost'.",
236 "default": "localhost"
237 },
238 "port": {
239 "type": "string",
240 "description": "Debug port to attach to. Default is 8081.",
241 "default": "8081"
242 },
243 "remoteRoot": {
244 "type": "string",
245 "description": "The source root of the remote host.",
246 "default": null
247 },
248 "localRoot": {
249 "type": "string",
250 "description": "The local source root that corresponds to the 'remoteRoot'.",
251 "default": "${workspaceRoot}"
252 },
253 "skipFiles": {
254 "type": "array",
255 "description": "An array of file or folder names, or glob patterns, to skip when debugging.",
256 "items": {
257 "type": "string"
258 },
259 "default": []
260 }
261 }
262 },
263 "launch": {
264 "required": [
265 "program",
266 "platform"
267 ],
268 "properties": {
269 "platform": {
270 "type": "string",
271 "enum": [
272 "ios",
273 "android",
274 "exponent",
275 "windows"
276 ],
277 "description": "The platform to target"
278 },
279 "program": {
280 "type": "string",
281 "description": "The path to launchReactNative.js in the vscode folder"
282 },
283 "target": {
284 "anyOf": [
285 {
286 "type": "string",
287 "enum": [
288 "device",
289 "simulator"
290 ]
291 },
292 {
293 "type": "string"
294 }
295 ],
296 "default": "simulator",
297 "description": "Device target to run on (either device or simulator)"
298 },
299 "sourceMaps": {
300 "type": "boolean",
301 "description": "Whether to use JavaScript source maps to map the generated bundled code back to its original sources",
302 "default": false
303 },
304 "logCatArguments": {
305 "type": "array",
306 "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\"",
307 "default": [
308 "*:S",
309 "ReactNative:V",
310 "ReactNativeJS:V"
311 ]
312 },
313 "outDir": {
314 "type": "string",
315 "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"",
316 "default": null
317 },
318 "runArguments": {
319 "type": "array",
320 "description": "Run arguments to be passed to 'react-native run-<platform>' command(Override all other configuration params)"
321 },
322 "env": {
323 "type": "object",
324 "additionalProperties": {
325 "type": "string"
326 },
327 "description": "Environment variables passed to the program.",
328 "default": {}
329 },
330 "envFile": {
331 "type": "string",
332 "description": "Absolute path to a file containing environment variable definitions.",
333 "default": "${workspaceFolder}/.env"
334 },
335 "variant": {
336 "type": "string",
337 "description": "A variant to be passed to react-native run-android, e.g. 'devDebug' to specify --variant=devDebug"
338 },
339 "scheme": {
340 "type": "string",
341 "description": "A scheme name to be passed to react-native run-ios, e.g. 'devDebug' to specify --scheme=devDebug"
342 },
343 "skipFiles": {
344 "type": "array",
345 "description": "An array of file or folder names, or glob patterns, to skip when debugging.",
346 "items": {
347 "type": "string"
348 },
349 "default": []
350 },
351 "trace": {
352 "type": "string",
353 "enum": [
354 "verbose",
355 "log",
356 "warn",
357 "error",
358 "stop"
359 ],
360 "default": "log",
361 "description": "Setup logging level in debugger."
362 }
363 }
364 }
365 }
366 }
367 ],
368 "configuration": {
369 "type": "object",
370 "title": "React-Native configuration",
371 "properties": {
372 "react-native.ios.runArguments.simulator": {
373 "description": "Run arguments to be passed to 'react-native run-ios' command",
374 "type": "array",
375 "default": [],
376 "scope": "resource"
377 },
378 "react-native.ios.runArguments.device": {
379 "description": "Run arguments to be passed to 'react-native run-ios' command",
380 "type": "array",
381 "default": [],
382 "scope": "resource"
383 },
384 "react-native.ios.env.simulator": {
385 "type": "object",
386 "additionalProperties": {
387 "type": "string"
388 },
389 "description": "Environment variables passed to the program.",
390 "default": {},
391 "scope": "resource"
392 },
393 "react-native.ios.env.device": {
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.envFile.simulator": {
403 "type": "string",
404 "description": "Absolute path to a file containing environment variable definitions.",
405 "scope": "resource"
406 },
407 "react-native.ios.envFile.device": {
408 "type": "string",
409 "description": "Absolute path to a file containing environment variable definitions.",
410 "scope": "resource"
411 },
412 "react-native.android.runArguments.simulator": {
413 "description": "Run arguments to be passed to 'react-native run-android' command",
414 "type": "array",
415 "default": [],
416 "scope": "resource"
417 },
418 "react-native.android.runArguments.device": {
419 "description": "Run arguments to be passed to 'react-native run-android' command",
420 "type": "array",
421 "default": [],
422 "scope": "resource"
423 },
424 "react-native.android.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.android.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.android.envFile.simulator": {
443 "type": "string",
444 "description": "Absolute path to a file containing environment variable definitions.",
445 "scope": "resource"
446 },
447 "react-native.android.envFile.device": {
448 "type": "string",
449 "description": "Absolute path to a file containing environment variable definitions.",
450 "scope": "resource"
451 },
452 "react-native.packager.port": {
453 "description": "React-native packager port",
454 "type": "number",
455 "default": 8081,
456 "scope": "resource"
457 },
458 "react-native-tools.projectRoot": {
459 "description": "Subfolder in which the react-native project is located",
460 "type": "string",
461 "scope": "resource",
462 "default": ""
463 },
464 "react-native-tools.logLevel": {
465 "description": "Logging level in extension",
466 "type": "enum",
467 "enum": [
468 "Trace",
469 "Debug",
470 "Info",
471 "Warning",
472 "Error",
473 "None"
474 ],
475 "default": "Info",
476 "scope": "resource"
477 }
478 }
479 }
480 },
481 "scripts": {
482 "start": "node node_modules/react-native/local-cli/cli.js start",
483 "compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
484 "vscode:prepublish": "gulp",
485 "test": "node ./node_modules/vscode/bin/test",
486 "postinstall": "node ./node_modules/vscode/bin/install"
487 },
488 "dependencies": {
489 "extract-opts": "2.2.0",
490 "flatten-source-map": "0.0.2",
491 "noice-json-rpc": "^1.0.2",
492 "options": "0.0.6",
493 "q": "1.4.1",
494 "qr-image": "^3.2.0",
495 "semver": "5.1.0",
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