microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.5.2

Branches

Tags

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

Clone

HTTPS

Download ZIP

package.json

441lines · modecode

1{
2 "name": "vscode-react-native",
3 "displayName": "React Native Tools",
4 "version": "0.5.2",
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 "variant": {
297 "type": "string",
298 "description": "A variant to be passed to react-native run-android, e.g. 'devDebug' to specify --variant=devDebug"
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"
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."
315 }
316 }
317 }
318 }
319 }
320 ],
321 "configuration": {
322 "type": "object",
323 "title": "React-Native configuration",
324 "properties": {
325 "react-native.ios.runArguments.simulator": {
326 "description": "Run arguments to be passed to 'react-native run-ios' command",
327 "type": "array",
328 "default": [],
329 "scope": "resource"
330 },
331 "react-native.ios.runArguments.device": {
332 "description": "Run arguments to be passed to 'react-native run-ios' command",
333 "type": "array",
334 "default": [],
335 "scope": "resource"
336 },
337 "react-native.android.runArguments.simulator": {
338 "description": "Run arguments to be passed to 'react-native run-android' command",
339 "type": "array",
340 "default": [],
341 "scope": "resource"
342 },
343 "react-native.android.runArguments.device": {
344 "description": "Run arguments to be passed to 'react-native run-android' command",
345 "type": "array",
346 "default": [],
347 "scope": "resource"
348 },
349 "react-native.packager.port": {
350 "description": "React-native packager port",
351 "type": "number",
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",
358 "scope": "resource",
359 "default": ""
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"
374 }
375 }
376 }
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",
388 "noice-json-rpc": "^1.0.2",
389 "options": "0.0.6",
390 "q": "1.4.1",
391 "qr-image": "^3.2.0",
392 "semver": "5.1.0",
393 "source-map-resolve": "^0.5.0",
394 "strip-json-comments": "2.0.1",
395 "typechecker": "2.0.8",
396 "ultron": "1.0.2",
397 "vscode-chrome-debug-core": "^3.17.3",
398 "vscode-debugadapter": "^1.23.0",
399 "vscode-debugprotocol": "^1.23.0",
400 "vscode-extension-telemetry": "0.0.5",
401 "ws": "^3.2.0"
402 },
403 "devDependencies": {
404 "@types/mocha": "^2.2.40",
405 "@types/mock-fs": "^3.6.30",
406 "@types/node": "^6.0.65",
407 "@types/qr-image": "^3.2.0",
408 "@types/shelljs": "^0.7.0",
409 "@types/source-map": "^0.5.0",
410 "@types/source-map-support": "^0.2.28",
411 "@types/websocket": "0.0.33",
412 "@types/ws": "^0.0.39",
413 "del": "^2.2.0",
414 "gulp": "^3.9.1",
415 "gulp-istanbul": "^1.1.2",
416 "gulp-mocha": "^3.0.1",
417 "gulp-preprocess": "^2.0.0",
418 "gulp-sourcemaps": "^1.6.0",
419 "gulp-tslint": "^8.1.2",
420 "gulp-typescript": "^3.1.5",
421 "gulp-util": "^3.0.7",
422 "isparta": "^4.0.0",
423 "minimist": "^1.2.0",
424 "mocha": "^3.2.0",
425 "mocha-teamcity-reporter": "^1.0.0",
426 "mock-fs": "^4.4.1",
427 "remap-istanbul": "^0.9.5",
428 "run-sequence": "^1.2.2",
429 "should": "^8.3.0",
430 "sinon": "^1.17.3",
431 "source-map-support": "^0.4.0",
432 "through2": "^2.0.1",
433 "tslint": "^5.6.0",
434 "typescript": "2.4.2",
435 "vsce": "^1.3.0",
436 "vscode": "^1.1.6"
437 },
438 "extensionDependencies": [
439 "ms-vscode.node-debug2"
440 ]
441}
442