microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
280c07463f45573fc0cd19fc2d2eb91eb3e828fd

Branches

Tags

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

Clone

HTTPS

Download ZIP

package.json

244lines · modecode

1{
2 "name": "vscode-react-native",
3 "displayName": "React Native Tools",
4 "version": "0.1.6",
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 "workspaceContains:package.json"
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 "internalDebuggerPort": 9090,
83 "sourceMaps": true,
84 "outDir": "${workspaceRoot}/.vscode/.react"
85 },
86 {
87 "name": "Debug iOS",
88 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
89 "type": "reactnative",
90 "request": "launch",
91 "platform": "ios",
92 "target": "iPhone 5s",
93 "internalDebuggerPort": 9090,
94 "sourceMaps": true,
95 "outDir": "${workspaceRoot}/.vscode/.react"
96 },
97 {
98 "name": "Attach to packager",
99 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
100 "type": "reactnative",
101 "request": "attach",
102 "internalDebuggerPort": 9090,
103 "sourceMaps": true,
104 "outDir": "${workspaceRoot}/.vscode/.react"
105 },
106 {
107 "name": "Debug in Exponent",
108 "program": "${workspaceRoot}/.vscode/launchReactNative.js",
109 "type": "reactnative",
110 "request": "launch",
111 "platform": "exponent",
112 "internalDebuggerPort": 9090,
113 "sourceMaps": true,
114 "outDir": "${workspaceRoot}/.vscode/.react"
115 }
116 ],
117 "configurationAttributes": {
118 "attach": {
119 "required": [
120 "program"
121 ],
122 "properties": {
123 "program": {
124 "type": "string",
125 "description": "The path to launchReactNative.js in the vscode folder"
126 },
127 "internalDebuggerPort": {
128 "type": "number",
129 "description": "A port to be used to enable automatic reloading of breakpoints when sourcemaps change.",
130 "default": 9090
131 },
132 "sourceMaps": {
133 "type": "boolean",
134 "description": "Whether to use JavaScript source maps to map the generated bundled code back to its original sources",
135 "default": false
136 },
137 "outDir": {
138 "type": "string",
139 "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"",
140 "default": null
141 }
142 }
143 },
144 "launch": {
145 "required": [
146 "program",
147 "platform"
148 ],
149 "properties": {
150 "platform": {
151 "type": "string",
152 "description": "The platform ('ios' or 'android') to target"
153 },
154 "program": {
155 "type": "string",
156 "description": "The path to launchReactNative.js in the vscode folder"
157 },
158 "target": {
159 "type": "string",
160 "description": "'simulator', 'device', or the name of the emulator to run on"
161 },
162 "internalDebuggerPort": {
163 "type": "number",
164 "description": "A port to be used to enable automatic reloading of breakpoints when sourcemaps change.",
165 "default": 9090
166 },
167 "sourceMaps": {
168 "type": "boolean",
169 "description": "Whether to use JavaScript source maps to map the generated bundled code back to its original sources",
170 "default": false
171 },
172 "logCatArguments": {
173 "type": "array",
174 "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\"",
175 "default": [
176 "*:S",
177 "ReactNative:V",
178 "ReactNativeJS:V"
179 ]
180 },
181 "outDir": {
182 "type": "string",
183 "description": "The location of the generated JavaScript code (the bundle file). Normally this should be \"${workspaceRoot}/.vscode/.react\"",
184 "default": null
185 },
186 "iosRelativeProjectPath": {
187 "type": "string",
188 "description": "Relative path to the ios/ folder, if it is not located on the project root.",
189 "default": "ios"
190 },
191 "variant": {
192 "type": "string",
193 "description": "A variant to be passed to react-native run-android, e.g. 'devDebug' to specify --variant=devDebug"
194 }
195 }
196 }
197 }
198 }
199 ]
200 },
201 "scripts": {
202 "start": "node node_modules/react-native/local-cli/cli.js start",
203 "compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
204 "vscode:prepublish": "gulp",
205 "test": "node ./node_modules/vscode/bin/test",
206 "postinstall": "node ./node_modules/vscode/bin/install"
207 },
208 "dependencies": {
209 "extract-opts": "2.2.0",
210 "flatten-source-map": "0.0.2",
211 "options": "0.0.6",
212 "q": "1.4.1",
213 "semver": "5.1.0",
214 "strip-json-comments": "2.0.1",
215 "typechecker": "2.0.8",
216 "ultron": "1.0.2",
217 "vscode-extension-telemetry": "0.0.5",
218 "ws": "1.0.1",
219 "xdl": "0.9.0"
220 },
221 "devDependencies": {
222 "del": "^2.2.0",
223 "gulp": "^3.9.1",
224 "gulp-mocha": "^2.2.0",
225 "gulp-preprocess": "^2.0.0",
226 "gulp-sourcemaps": "^1.6.0",
227 "gulp-tslint": "^4.3.3",
228 "gulp-typescript": "^2.12.1",
229 "gulp-util": "^3.0.7",
230 "minimist": "^1.2.0",
231 "mocha": "^2.4.5",
232 "mocha-teamcity-reporter": "^1.0.0",
233 "mock-fs": "^3.8.0",
234 "run-sequence": "^1.1.5",
235 "should": "^8.3.0",
236 "sinon": "^1.17.3",
237 "source-map-support": "^0.4.0",
238 "through2": "^2.0.1",
239 "tslint": "^3.6.0",
240 "typescript": "^1.8.9",
241 "vsce": "^1.3.0",
242 "vscode": "^0.11.14"
243 }
244}
245