microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
package.json
441lines · modeblame
9cf5eef2leolee10 years ago | 1 | { |
e45838cbVladimir Kotikov9 years ago | 2 | "name": "vscode-react-native", |
| 3 | "displayName": "React Native Tools", | |
11abbbd3Artem Egorov8 years ago | 4 | "version": "0.5.2", |
e45838cbVladimir Kotikov9 years ago | 5 | "private": true, |
| 6 | "publisher": "vsmobile", | |
f14f61beVladimir Kotikov8 years ago | 7 | "icon": "images/icon.png", |
e45838cbVladimir Kotikov9 years ago | 8 | "galleryBanner": { |
| 9 | "color": "#3B3738", | |
| 10 | "theme": "dark" | |
| 11 | }, | |
| 12 | "description": "Code-hinting, debugging and integrated commands for React Native", | |
dbecc521Artem Egorov8 years ago | 13 | "keywords": [ |
| 14 | "react-native", | |
| 15 | "multi-root ready" | |
| 16 | ], | |
e45838cbVladimir Kotikov9 years ago | 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": { | |
2e432a9eArtem Egorov8 years ago | 24 | "vscode": "^1.17.1" |
e45838cbVladimir Kotikov9 years ago | 25 | }, |
| 26 | "categories": [ | |
| 27 | "Debuggers", | |
| 28 | "Other" | |
| 29 | ], | |
| 30 | "activationEvents": [ | |
| 31 | "*" | |
| 32 | ], | |
678db279Artem Egorov8 years ago | 33 | "main": "./src/extension/rn-extension", |
e45838cbVladimir Kotikov9 years ago | 34 | "contributes": { |
| 35 | "commands": [ | |
| 36 | { | |
cbb0e869Artem Egorov8 years ago | 37 | "command": "reactNative.runAndroidSimulator", |
| 38 | "title": "React Native: Run Android on Simulator" | |
e45838cbVladimir Kotikov9 years ago | 39 | }, |
| 40 | { | |
cbb0e869Artem Egorov8 years ago | 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" | |
e45838cbVladimir Kotikov9 years ago | 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" | |
7daed3fcArtem Egorov8 years ago | 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" | |
e45838cbVladimir Kotikov9 years ago | 79 | } |
9cf5eef2leolee10 years ago | 80 | ], |
e45838cbVladimir Kotikov9 years ago | 81 | "debuggers": [ |
| 82 | { | |
| 83 | "type": "reactnative", | |
| 84 | "label": "React Native", | |
678db279Artem Egorov8 years ago | 85 | "program": "./src/debugger/reactNativeDebugEntryPoint.js", |
e45838cbVladimir Kotikov9 years ago | 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 | } | |
9cf5eef2leolee10 years ago | 131 | ], |
41294ebfNikita Matrosov9 years ago | 132 | "configurationSnippets": [ |
| 133 | { | |
85503605Vladimir Kotikov9 years ago | 134 | "label": "React Native: Debug Android", |
41294ebfNikita Matrosov9 years ago | 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 | { | |
85503605Vladimir Kotikov9 years ago | 147 | "label": "React Native: Debug iOS", |
41294ebfNikita Matrosov9 years ago | 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 | { | |
85503605Vladimir Kotikov9 years ago | 160 | "label": "React Native: Attach to packager", |
41294ebfNikita Matrosov9 years ago | 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 | { | |
85503605Vladimir Kotikov9 years ago | 172 | "label": "React Native: Debug in Exponent", |
41294ebfNikita Matrosov9 years ago | 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 | ], | |
e45838cbVladimir Kotikov9 years ago | 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 | |
66b52ec9Artem Egorov8 years ago | 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." | |
0a68f8dbArtem Egorov8 years ago | 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." | |
6eeec3c0Serge Svekolnikov8 years ago | 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}" | |
e45838cbVladimir Kotikov9 years ago | 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": { | |
8022afdfVladimir Kotikov8 years ago | 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)" | |
e45838cbVladimir Kotikov9 years ago | 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 | }, | |
0db0be15Artem Egorov8 years ago | 292 | "runArguments": { |
| 293 | "type": "array", | |
8022afdfVladimir Kotikov8 years ago | 294 | "description": "Run arguments to be passed to 'react-native run-<platform>' command(Override all other configuration params)" |
e45838cbVladimir Kotikov9 years ago | 295 | }, |
| 296 | "variant": { | |
| 297 | "type": "string", | |
| 298 | "description": "A variant to be passed to react-native run-android, e.g. 'devDebug' to specify --variant=devDebug" | |
60d501abNick Hodapp9 years ago | 299 | }, |
| 300 | "scheme": { | |
| 301 | "type": "string", | |
| 302 | "description": "A scheme name to be passed to react-native run-ios, e.g. 'devDebug' to specify --scheme=devDebug" | |
0a68f8dbArtem Egorov8 years ago | 303 | }, |
| 304 | "trace": { | |
| 305 | "type": "string", | |
| 306 | "enum": [ | |
| 307 | "verbose", | |
| 308 | "log", | |
| 309 | "warn", | |
| 310 | "error", | |
| 311 | "stop" | |
| 312 | ], | |
| 313 | "default": "log", | |
| 314 | "description": "Setup logging level in debugger." | |
e45838cbVladimir Kotikov9 years ago | 315 | } |
9cf5eef2leolee10 years ago | 316 | } |
e45838cbVladimir Kotikov9 years ago | 317 | } |
| 318 | } | |
| 319 | } | |
cbb0e869Artem Egorov8 years ago | 320 | ], |
| 321 | "configuration": { | |
| 322 | "type": "object", | |
| 323 | "title": "React-Native configuration", | |
| 324 | "properties": { | |
0db0be15Artem Egorov8 years ago | 325 | "react-native.ios.runArguments.simulator": { |
| 326 | "description": "Run arguments to be passed to 'react-native run-ios' command", | |
| 327 | "type": "array", | |
7ef94dceArtem Egorov8 years ago | 328 | "default": [], |
| 329 | "scope": "resource" | |
cbb0e869Artem Egorov8 years ago | 330 | }, |
0db0be15Artem Egorov8 years ago | 331 | "react-native.ios.runArguments.device": { |
| 332 | "description": "Run arguments to be passed to 'react-native run-ios' command", | |
| 333 | "type": "array", | |
7ef94dceArtem Egorov8 years ago | 334 | "default": [], |
| 335 | "scope": "resource" | |
0db0be15Artem Egorov8 years ago | 336 | }, |
| 337 | "react-native.android.runArguments.simulator": { | |
| 338 | "description": "Run arguments to be passed to 'react-native run-android' command", | |
| 339 | "type": "array", | |
7ef94dceArtem Egorov8 years ago | 340 | "default": [], |
| 341 | "scope": "resource" | |
0db0be15Artem Egorov8 years ago | 342 | }, |
| 343 | "react-native.android.runArguments.device": { | |
| 344 | "description": "Run arguments to be passed to 'react-native run-android' command", | |
| 345 | "type": "array", | |
7ef94dceArtem Egorov8 years ago | 346 | "default": [], |
| 347 | "scope": "resource" | |
4edcda70Artem Egorov8 years ago | 348 | }, |
| 349 | "react-native.packager.port": { | |
| 350 | "description": "React-native packager port", | |
| 351 | "type": "number", | |
7ef94dceArtem Egorov8 years ago | 352 | "default": 8081, |
| 353 | "scope": "resource" | |
| 354 | }, | |
| 355 | "react-native-tools.projectRoot": { | |
| 356 | "description": "Subfolder in which the react-native project is located", | |
| 357 | "type": "string", | |
3118589cArtem Egorov8 years ago | 358 | "scope": "resource", |
| 359 | "default": "" | |
7ef94dceArtem Egorov8 years ago | 360 | }, |
| 361 | "react-native-tools.logLevel": { | |
| 362 | "description": "Logging level in extension", | |
| 363 | "type": "enum", | |
| 364 | "enum": [ | |
| 365 | "Trace", | |
| 366 | "Debug", | |
| 367 | "Info", | |
| 368 | "Warning", | |
| 369 | "Error", | |
| 370 | "None" | |
| 371 | ], | |
| 372 | "default": "Info", | |
| 373 | "scope": "resource" | |
cbb0e869Artem Egorov8 years ago | 374 | } |
| 375 | } | |
| 376 | } | |
e45838cbVladimir Kotikov9 years ago | 377 | }, |
| 378 | "scripts": { | |
| 379 | "start": "node node_modules/react-native/local-cli/cli.js start", | |
| 380 | "compile": "node ./node_modules/vscode/bin/compile -watch -p ./", | |
| 381 | "vscode:prepublish": "gulp", | |
| 382 | "test": "node ./node_modules/vscode/bin/test", | |
| 383 | "postinstall": "node ./node_modules/vscode/bin/install" | |
| 384 | }, | |
| 385 | "dependencies": { | |
| 386 | "extract-opts": "2.2.0", | |
| 387 | "flatten-source-map": "0.0.2", | |
7daed3fcArtem Egorov8 years ago | 388 | "noice-json-rpc": "^1.0.2", |
e45838cbVladimir Kotikov9 years ago | 389 | "options": "0.0.6", |
| 390 | "q": "1.4.1", | |
e23fa745Vladimir Kotikov9 years ago | 391 | "qr-image": "^3.2.0", |
e45838cbVladimir Kotikov9 years ago | 392 | "semver": "5.1.0", |
48644043Dmitry Zinovyev9 years ago | 393 | "source-map-resolve": "^0.5.0", |
e45838cbVladimir Kotikov9 years ago | 394 | "strip-json-comments": "2.0.1", |
| 395 | "typechecker": "2.0.8", | |
| 396 | "ultron": "1.0.2", | |
0a68f8dbArtem Egorov8 years ago | 397 | "vscode-chrome-debug-core": "^3.17.3", |
| 398 | "vscode-debugadapter": "^1.23.0", | |
| 399 | "vscode-debugprotocol": "^1.23.0", | |
e45838cbVladimir Kotikov9 years ago | 400 | "vscode-extension-telemetry": "0.0.5", |
7daed3fcArtem Egorov8 years ago | 401 | "ws": "^3.2.0" |
e45838cbVladimir Kotikov9 years ago | 402 | }, |
| 403 | "devDependencies": { | |
6d5c8798Nikita Matrosov9 years ago | 404 | "@types/mocha": "^2.2.40", |
| 405 | "@types/mock-fs": "^3.6.30", | |
| 406 | "@types/node": "^6.0.65", | |
5c8365a6Artem Egorov8 years ago | 407 | "@types/qr-image": "^3.2.0", |
6d5c8798Nikita Matrosov9 years ago | 408 | "@types/shelljs": "^0.7.0", |
70bb7c83Vladimir Kotikov9 years ago | 409 | "@types/source-map": "^0.5.0", |
6d5c8798Nikita Matrosov9 years ago | 410 | "@types/source-map-support": "^0.2.28", |
| 411 | "@types/websocket": "0.0.33", | |
| 412 | "@types/ws": "^0.0.39", | |
e45838cbVladimir Kotikov9 years ago | 413 | "del": "^2.2.0", |
| 414 | "gulp": "^3.9.1", | |
28d84585Vladimir Kotikov8 years ago | 415 | "gulp-istanbul": "^1.1.2", |
297822a1Vladimir Kotikov8 years ago | 416 | "gulp-mocha": "^3.0.1", |
e45838cbVladimir Kotikov9 years ago | 417 | "gulp-preprocess": "^2.0.0", |
| 418 | "gulp-sourcemaps": "^1.6.0", | |
27710197Vladimir Kotikov8 years ago | 419 | "gulp-tslint": "^8.1.2", |
6d5c8798Nikita Matrosov9 years ago | 420 | "gulp-typescript": "^3.1.5", |
e45838cbVladimir Kotikov9 years ago | 421 | "gulp-util": "^3.0.7", |
28d84585Vladimir Kotikov8 years ago | 422 | "isparta": "^4.0.0", |
e45838cbVladimir Kotikov9 years ago | 423 | "minimist": "^1.2.0", |
6d5c8798Nikita Matrosov9 years ago | 424 | "mocha": "^3.2.0", |
e45838cbVladimir Kotikov9 years ago | 425 | "mocha-teamcity-reporter": "^1.0.0", |
396b6627Vladimir Kotikov8 years ago | 426 | "mock-fs": "^4.4.1", |
28d84585Vladimir Kotikov8 years ago | 427 | "remap-istanbul": "^0.9.5", |
| 428 | "run-sequence": "^1.2.2", | |
e45838cbVladimir Kotikov9 years ago | 429 | "should": "^8.3.0", |
| 430 | "sinon": "^1.17.3", | |
| 431 | "source-map-support": "^0.4.0", | |
| 432 | "through2": "^2.0.1", | |
27710197Vladimir Kotikov8 years ago | 433 | "tslint": "^5.6.0", |
5c8365a6Artem Egorov8 years ago | 434 | "typescript": "2.4.2", |
e45838cbVladimir Kotikov9 years ago | 435 | "vsce": "^1.3.0", |
2e432a9eArtem Egorov8 years ago | 436 | "vscode": "^1.1.6" |
e45838cbVladimir Kotikov9 years ago | 437 | }, |
| 438 | "extensionDependencies": [ | |
| 439 | "ms-vscode.node-debug2" | |
| 440 | ] | |
b5eced8fJoshua Skelton10 years ago | 441 | } |