react-native/local-cli/util
Michael S. Kazmier 33d710e8c5 adds --port option to `react-native run-ios` as well as patches port …
Summary:
The pull request adds the `--port` option to `run-ios` allowing a developer to build and launch a react-native app using a single command line like this:
```
react-native run-ios --port 8088
```

It defaults to the current port 8081.

This pull request fixes issue #9145 and issue #14113.

This patch also extends `run-android` to properly test and launch the packager with the specified port, extending the work done in PR:  ##15316

1. Create a new react-native app, or simply clone this branch and then update your version of react-native using `yarn add file:./path/to/this/fork/of/react-native`
2. run `react-native run-ios --port 8088`
3. watch the packager start on the desired port (8088 in this case) and watch your app in your simulator connect to the packager and launch the app.
Closes https://github.com/facebook/react-native/pull/16172

Differential Revision: D6612534

Pulled By: shergin

fbshipit-source-id: 50af449f5e4c32fb76ba95f4cb7bf179e35526d5
2018-01-04 20:11:10 -08:00
..
__mocks__ Remove mockFs dependency 2017-10-11 15:11:28 -07:00
__tests__ Remove mockFs dependency 2017-10-11 15:11:28 -07:00
Config.js Rename metro-bundler to metro 2017-11-29 03:35:29 -08:00
PackageManager.js Stop yarn error message appearing for Windows users of local-cli 2017-04-07 11:17:00 -07:00
assertRequiredOptions.js Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
copyAndReplace.js Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support 2016-11-18 18:28:51 -08:00
findReactNativeScripts.js Make the CLI recognize CRNA projects 2017-08-03 12:10:47 -07:00
findSymlinkedModules.js Refactor how symlinks are discovered in local-cli, support scoped modules 2017-09-14 04:31:57 -07:00
findSymlinksPaths.js Run eslint --fix 2017-10-09 17:46:44 -07:00
isPackagerRunning.js adds --port option to `react-native run-ios` as well as patches port … 2018-01-04 20:11:10 -08:00
isValidPackageName.js Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
log.js Add ability to silence packager logs to stdout 2016-03-15 12:10:31 -07:00
parseCommandLine.js Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
walk.js Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
yarn.js Stop yarn error message appearing for Windows users of local-cli 2017-04-07 11:17:00 -07:00