react-native/local-cli
Johan Ruokangas ee60c11f75 Pass port when running on device (fix #17973)
Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html

Happy contributing!

-->

Building for iOS device `react-native run-ios --device [id]` fails since port is not passed. This is a blocker for us and prevents us from updating to latest React Native stable.

I've tested this in our app and also in fresh app using RN master and verified that it works.

None.

[CLI] [BUGFIX] [local-cli/runIOS/runIOS.js] - Pass metro port when running on device
<!--
Help reviewers and the release process by writing your own release notes

**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

  CATEGORY
[----------]        TYPE
[ CLI      ]   [-------------]      LOCATION
[ DOCS     ]   [ BREAKING    ]   [-------------]
[ GENERAL  ]   [ BUGFIX      ]   [-{Component}-]
[ INTERNAL ]   [ ENHANCEMENT ]   [ {File}      ]
[ IOS      ]   [ FEATURE     ]   [ {Directory} ]   |-----------|
[ ANDROID  ]   [ MINOR       ]   [ {Framework} ] - | {Message} |
[----------]   [-------------]   [-------------]   |-----------|

[CATEGORY] [TYPE] [LOCATION] - MESSAGE

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
Closes https://github.com/facebook/react-native/pull/17983

Differential Revision: D6988299

Pulled By: hramos

fbshipit-source-id: 5169706600f87f13b9c9c105eb7d6db7a40194f1
2018-02-20 11:35:02 +01:00
..
__mocks__ Do not use Node 8.x specific Stream.final 2017-12-20 16:48:25 -08:00
__tests__ Fixing eslint-comments warnings 2018-01-08 17:04:29 -08:00
bundle Move Terminal to metro-core 2017-12-15 06:36:00 -08:00
core Uses a single code path to link and unlink all platforms 2018-02-14 15:46:38 +01:00
dependencies Do not set minify=true when calculating the list of dependencies 2017-12-23 09:16:30 -08:00
eject Run eslint --fix 2017-10-09 17:46:44 -07:00
generator Run eslint --fix 2017-10-09 17:46:44 -07:00
info added info CLI command 2017-07-18 11:45:47 -07:00
init Change indentation of package.json including Jest to 2 spaces 2017-10-15 10:50:20 -07:00
install Use Yarn for Install/Uninstall CLI if available 2017-02-02 05:13:33 -08:00
library Reject local-cli promises with Error objects 2017-08-08 09:38:21 -07:00
link Uses a single code path to link and unlink all platforms 2018-02-14 15:46:38 +01:00
logAndroid Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
logIOS Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
runAndroid adds --port option to `react-native run-ios` as well as patches port … 2018-01-04 20:11:10 -08:00
runIOS Pass port when running on device (fix #17973) 2018-02-20 11:35:02 +01:00
server Prevents JS Debugger issues with CORS 2018-01-31 07:00:35 -08:00
templates @allow-large-files [Flow] Upgrade xplat/js to flow v0.63 2018-01-08 12:49:53 -08:00
upgrade New upgrading process, relying on Git 2016-11-28 08:28:35 -08:00
util adds --port option to `react-native run-ios` as well as patches port … 2018-01-04 20:11:10 -08:00
.eslintrc Disallow trailing commas in react-native-github 2017-08-17 16:20:04 -07:00
cli.js packager: centralize babelRegisterOnly callsites 2017-01-06 06:13:54 -08:00
cliEntry.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
commands.js added info CLI command 2017-07-18 11:45:47 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh CLI: Adding shebang to setup_env.sh script 2017-05-31 02:46:23 -07:00
wrong-react-native.js Fix local-cli's installedGlobally check to work on Windows platforms 2017-12-04 11:17:10 -08:00