react-native/scripts
Ian Henshaw 3cd0737fe2 Fix for 17497 (#17498)
Summary:
Changed runAndroid.js to generate .packager.bat and launchPackager.ba…t to call it to setup the environment variable

<!--
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!

-->

Trying to use react-native on a Windows box with a virus killer that runs on port 8081...

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
1) Start an android emulator
2) on a react-native project (with the changes), run `react-native run-android --port 9988`.
3) When the packager starts, verify that it states the correct port in the terminal window.
4) verify that the application correctly starts in the Emulator.

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/react-native-website, and link to your PR here.)

<!--
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
-->
[INTERNAL] [BUGFIX] [./scripts] - Fixed runAndroid to enable the use of a package on port <> 8081 for Windows.
Closes https://github.com/facebook/react-native/pull/17498

Differential Revision: D8682067

Pulled By: hramos

fbshipit-source-id: 6604b827077b3a6a2da9914c1fd36dad6ef30e43
2018-06-28 14:17:38 -07:00
..
circleci Clear apt cache 2018-05-15 17:27:52 -07:00
versiontemplates Removed last traces of @providesModule from React Native 2018-04-26 08:30:54 -07:00
.packager.env Move YGStyle to seperate file and add constructors 2018-02-20 05:55:36 -08:00
.tests.env bump build tools to 26.0.3 (#19831) 2018-06-25 17:17:25 -07:00
android-e2e-test.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
android-setup.sh Update Android packages cache key 2018-05-16 08:57:01 -07:00
bump-oss-version.js Prettier files with shebang 2018-05-11 13:52:30 -07:00
ios-configure-glog.sh
ios-install-third-party.sh OSS: upgrade Folly 2016.09.26 => 2016.10.31 2018-04-13 17:33:23 -07:00
launchPackager.bat Fix for 17497 (#17498) 2018-06-28 14:17:38 -07:00
launchPackager.command Update license headers for MIT license 2018-02-16 18:31:53 -08:00
objc-test-ios.sh Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
objc-test-tvos.sh Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
objc-test.sh Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
packager.sh Update license headers for MIT license 2018-02-16 18:31:53 -08:00
process-podspecs.sh GLog fix on case sensitive APFS macOS 2018-01-28 22:29:51 -08:00
publish-npm.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
react-native-xcode.sh react-native-xcode.sh: Support Homebrew-installed nodenv 2018-06-01 16:03:51 -07:00
run-android-ci-instrumentation-tests.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
run-android-emulator.sh Consolidate CI/local test scripts 2018-05-15 17:27:52 -07:00
run-android-local-integration-tests.sh
run-android-local-unit-tests.sh
run-ci-e2e-tests.js Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
run-instrumentation-tests-via-adb-shell.sh
sync-css-layout.sh Update to MIT license 2018-02-16 18:31:53 -08:00
test-manual-e2e.sh Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
try-n-times.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
validate-android-device-env.sh Consolidate CI/local test scripts 2018-05-15 17:27:52 -07:00
validate-android-sdk.sh
validate-android-test-env.sh Update buck website 2018-06-27 12:03:21 -07:00