microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
package.json
286lines · modecode
| 1 | { |
| 2 | "name": "vscode-react-native", |
| 3 | "displayName": "React Native Tools", |
| 4 | "version": "0.3.0", |
| 5 | "private": true, |
| 6 | "publisher": "vsmobile", |
| 7 | "icon": "images/icon.svg", |
| 8 | "galleryBanner": { |
| 9 | "color": "#3B3738", |
| 10 | "theme": "dark" |
| 11 | }, |
| 12 | "description": "Code-hinting, debugging and integrated commands for React Native", |
| 13 | "bugs": "https://github.com/Microsoft/vscode-react-native/issues", |
| 14 | "license": "SEE LICENSE IN LICENSE.txt", |
| 15 | "repository": { |
| 16 | "type": "git", |
| 17 | "url": "https://github.com/Microsoft/vscode-react-native" |
| 18 | }, |
| 19 | "engines": { |
| 20 | "vscode": "^0.10.1" |
| 21 | }, |
| 22 | "categories": [ |
| 23 | "Debuggers", |
| 24 | "Other" |
| 25 | ], |
| 26 | "activationEvents": [ |
| 27 | "*" |
| 28 | ], |
| 29 | "main": "./out/extension/rn-extension", |
| 30 | "contributes": { |
| 31 | "commands": [ |
| 32 | { |
| 33 | "command": "reactNative.runAndroid", |
| 34 | "title": "React Native: Run Android" |
| 35 | }, |
| 36 | { |
| 37 | "command": "reactNative.runIos", |
| 38 | "title": "React Native: Run iOS" |
| 39 | }, |
| 40 | { |
| 41 | "command": "reactNative.startPackager", |
| 42 | "title": "React Native: Start Packager" |
| 43 | }, |
| 44 | { |
| 45 | "command": "reactNative.startExponentPackager", |
| 46 | "title": "React Native: Start Exponent Packager" |
| 47 | }, |
| 48 | { |
| 49 | "command": "reactNative.stopPackager", |
| 50 | "title": "React Native: Stop Packager" |
| 51 | }, |
| 52 | { |
| 53 | "command": "reactNative.restartPackager", |
| 54 | "title": "React Native: Restart Packager" |
| 55 | }, |
| 56 | { |
| 57 | "command": "reactNative.publishToExpHost", |
| 58 | "title": "React Native: Publish to Exponent" |
| 59 | } |
| 60 | ], |
| 61 | "debuggers": [ |
| 62 | { |
| 63 | "type": "reactnative", |
| 64 | "label": "React Native", |
| 65 | "program": "./out/debugger/reactNativeDebugEntryPoint.js", |
| 66 | "runtime": "node", |
| 67 | "enableBreakpointsFor": { |
| 68 | "languageIds": [ |
| 69 | "javascript", |
| 70 | "typescript", |
| 71 | "javascriptreact", |
| 72 | "typescriptreact" |
| 73 | ] |
| 74 | }, |
| 75 | "initialConfigurations": [ |
| 76 | { |
| 77 | "name": "Debug Android", |
| 78 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", |
| 79 | "type": "reactnative", |
| 80 | "request": "launch", |
| 81 | "platform": "android", |
| 82 | "sourceMaps": true, |
| 83 | "outDir": "${workspaceRoot}/.vscode/.react" |
| 84 | }, |
| 85 | { |
| 86 | "name": "Debug iOS", |
| 87 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", |
| 88 | "type": "reactnative", |
| 89 | "request": "launch", |
| 90 | "platform": "ios", |
| 91 | "target": "iPhone 5s", |
| 92 | "sourceMaps": true, |
| 93 | "outDir": "${workspaceRoot}/.vscode/.react" |
| 94 | }, |
| 95 | { |
| 96 | "name": "Attach to packager", |
| 97 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", |
| 98 | "type": "reactnative", |
| 99 | "request": "attach", |
| 100 | "sourceMaps": true, |
| 101 | "outDir": "${workspaceRoot}/.vscode/.react" |
| 102 | }, |
| 103 | { |
| 104 | "name": "Debug in Exponent", |
| 105 | "program": "${workspaceRoot}/.vscode/launchReactNative.js", |
| 106 | "type": "reactnative", |
| 107 | "request": "launch", |
| 108 | "platform": "exponent", |
| 109 | "sourceMaps": true, |
| 110 | "outDir": "${workspaceRoot}/.vscode/.react" |
| 111 | } |
| 112 | ], |
| 113 | "configurationSnippets": [ |
| 114 | { |
| 115 | "label": "Debug android: Launch", |
| 116 | "description": "A new configuration for launching react-native app on android", |
| 117 | "body": { |
| 118 | "name": "Debug Android", |
| 119 | "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"", |
| 120 | "type": "reactnative", |
| 121 | "request": "launch", |
| 122 | "platform": "android", |
| 123 | "sourceMaps": true, |
| 124 | "outDir": "^\"\\${workspaceRoot}/.vscode/.react\"" |
| 125 | } |
| 126 | }, |
| 127 | { |
| 128 | "label": "Debug iOS: Launch", |
| 129 | "description": "A new configuration for launching react-native app on iOS", |
| 130 | "body": { |
| 131 | "name": "Debug iOS", |
| 132 | "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"", |
| 133 | "type": "reactnative", |
| 134 | "request": "launch", |
| 135 | "platform": "ios", |
| 136 | "sourceMaps": true, |
| 137 | "target": "iPhone 5s", |
| 138 | "outDir": "^\"\\${workspaceRoot}/.vscode/.react\"" |
| 139 | } |
| 140 | }, |
| 141 | { |
| 142 | "label": "Attach to packager: Attach", |
| 143 | "description": "A new configuration for attaching to packager", |
| 144 | "body": { |
| 145 | "name": "Attach to packager", |
| 146 | "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"", |
| 147 | "type": "reactnative", |
| 148 | "request": "attach", |
| 149 | "sourceMaps": true, |
| 150 | "outDir": "^\"\\${workspaceRoot}/.vscode/.react\"" |
| 151 | } |
| 152 | }, |
| 153 | { |
| 154 | "label": "Debug in Exponent: Launch", |
| 155 | "description": "A new configuration for launching exponent app", |
| 156 | "body": { |
| 157 | "name": "Debug in Exponent", |
| 158 | "program": "^\"\\${workspaceRoot}/.vscode/launchReactNative.js\"", |
| 159 | "type": "reactnative", |
| 160 | "request": "launch", |
| 161 | "platform": "exponent", |
| 162 | "sourceMaps": true, |
| 163 | "outDir": "^\"\\${workspaceRoot}/.vscode/.react\"" |
| 164 | } |
| 165 | } |
| 166 | ], |
| 167 | "configurationAttributes": { |
| 168 | "attach": { |
| 169 | "required": [ |
| 170 | "program" |
| 171 | ], |
| 172 | "properties": { |
| 173 | "program": { |
| 174 | "type": "string", |
| 175 | "description": "The path to launchReactNative.js in the vscode folder" |
| 176 | }, |
| 177 | "sourceMaps": { |
| 178 | "type": "boolean", |
| 179 | "description": "Whether to use JavaScript source maps to map the generated bundled code back to its original sources", |
| 180 | "default": false |
| 181 | }, |
| 182 | "outDir": { |
| 183 | "type": "string", |
| 184 | "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"", |
| 185 | "default": null |
| 186 | } |
| 187 | } |
| 188 | }, |
| 189 | "launch": { |
| 190 | "required": [ |
| 191 | "program", |
| 192 | "platform" |
| 193 | ], |
| 194 | "properties": { |
| 195 | "platform": { |
| 196 | "type": "string", |
| 197 | "description": "The platform ('ios' or 'android') to target" |
| 198 | }, |
| 199 | "program": { |
| 200 | "type": "string", |
| 201 | "description": "The path to launchReactNative.js in the vscode folder" |
| 202 | }, |
| 203 | "target": { |
| 204 | "type": "string", |
| 205 | "description": "'simulator', 'device', or the name of the emulator to run on" |
| 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 | "logCatArguments": { |
| 213 | "type": "array", |
| 214 | "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\"", |
| 215 | "default": [ |
| 216 | "*:S", |
| 217 | "ReactNative:V", |
| 218 | "ReactNativeJS:V" |
| 219 | ] |
| 220 | }, |
| 221 | "outDir": { |
| 222 | "type": "string", |
| 223 | "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"", |
| 224 | "default": null |
| 225 | }, |
| 226 | "iosRelativeProjectPath": { |
| 227 | "type": "string", |
| 228 | "description": "Relative path to the ios/ folder, if it is not located on the project root.", |
| 229 | "default": "ios" |
| 230 | }, |
| 231 | "variant": { |
| 232 | "type": "string", |
| 233 | "description": "A variant to be passed to react-native run-android, e.g. 'devDebug' to specify --variant=devDebug" |
| 234 | } |
| 235 | } |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | ] |
| 240 | }, |
| 241 | "scripts": { |
| 242 | "start": "node node_modules/react-native/local-cli/cli.js start", |
| 243 | "compile": "node ./node_modules/vscode/bin/compile -watch -p ./", |
| 244 | "vscode:prepublish": "gulp", |
| 245 | "test": "node ./node_modules/vscode/bin/test", |
| 246 | "postinstall": "node ./node_modules/vscode/bin/install" |
| 247 | }, |
| 248 | "dependencies": { |
| 249 | "extract-opts": "2.2.0", |
| 250 | "flatten-source-map": "0.0.2", |
| 251 | "options": "0.0.6", |
| 252 | "q": "1.4.1", |
| 253 | "semver": "5.1.0", |
| 254 | "strip-json-comments": "2.0.1", |
| 255 | "typechecker": "2.0.8", |
| 256 | "ultron": "1.0.2", |
| 257 | "vscode-extension-telemetry": "0.0.5", |
| 258 | "ws": "1.0.1" |
| 259 | }, |
| 260 | "devDependencies": { |
| 261 | "del": "^2.2.0", |
| 262 | "gulp": "^3.9.1", |
| 263 | "gulp-mocha": "^2.2.0", |
| 264 | "gulp-preprocess": "^2.0.0", |
| 265 | "gulp-sourcemaps": "^1.6.0", |
| 266 | "gulp-tslint": "^4.3.3", |
| 267 | "gulp-typescript": "^2.12.1", |
| 268 | "gulp-util": "^3.0.7", |
| 269 | "minimist": "^1.2.0", |
| 270 | "mocha": "^2.4.5", |
| 271 | "mocha-teamcity-reporter": "^1.0.0", |
| 272 | "mock-fs": "^3.8.0", |
| 273 | "run-sequence": "^1.1.5", |
| 274 | "should": "^8.3.0", |
| 275 | "sinon": "^1.17.3", |
| 276 | "source-map-support": "^0.4.0", |
| 277 | "through2": "^2.0.1", |
| 278 | "tslint": "^3.6.0", |
| 279 | "typescript": "^1.8.9", |
| 280 | "vsce": "^1.3.0", |
| 281 | "vscode": "^0.11.14" |
| 282 | }, |
| 283 | "extensionDependencies": [ |
| 284 | "ms-vscode.node-debug2" |
| 285 | ] |
| 286 | } |
| 287 | |