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