react-native-macos/scripts
Christoph Pojer 29d9c35e12 Add --maxWorkers flag and allow transformers to run in-band.
Summary:
This diff cleans up some cruft and adds some features:

* It removes the usage of an env variable to control workers.
* It removes the lazy and handwavy calculation on how many workers to use for jest-haste-map. Jest itself uses the maximum amount of workers available and it has never been reported as an issue – especially since it is a one-time startup cost of about 3 seconds on a cold cache only.
* It adds a `--max-workers` flag to replace the env variable. This one is able to control both the number of workers for `jest-haste-map` as well as the transformers.
* It makes the transformers run in the parent process if 1 or fewer workers are are specified. This should help with debugging.

Once you approve this diff, I will publish a new version of metro to npm and update the version used in RN and remove the use of the env variable altogether: https://our.intern.facebook.com/intern/biggrep/?corpus=xplat&filename=&case=false&view=default&extre=&s=REACT_NATIVE_MAX_WORKERS&engine=apr_strmatch&context=false&filter[uninteresting]=false&filter[intern]=false&filter[test]=false&grep_regex=

Note: the process of adding a CLI option is really broken. Commander also has a weird API. We should consider building a better public API for Metro and then consider how to build a new CLI on top of it and simplify our internal integration. I really don't like how Metro is integrated across pieces of the RN cli in ways that is hard to manage. But that is a larger task for another time :)

Reviewed By: jeanlauliac

Differential Revision: D5217726

fbshipit-source-id: 74efddbb87755a9e744c816fbc62efa21f6a79bf
2017-06-13 09:16:03 -07:00
..
android-e2e-test.js E2e android 2016-04-13 08:20:05 -07:00
bump-oss-version.js Fixes current CI failures and allows tree shaking of native dev support code. 2017-02-27 14:04:58 -08:00
circle-ci-android-setup.sh Updated extra-android-m2repository to get android support v4 23.4.0 2016-12-29 05:43:31 -08:00
ios-configure-glog.sh Fix some issues with the React podspec for the Cxx bridge 2017-05-30 11:15:19 -07:00
ios-install-third-party.sh More attempts to fix Travis CI runs 2017-05-10 04:32:54 -07:00
launchPackager.bat Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
launchPackager.command Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
objc-test-ios.sh Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
objc-test-tvos.sh Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
objc-test.sh Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
packager.sh Fix `scripts/packager.sh` for RNTester 2017-05-25 09:46:23 -07:00
process-podspecs.sh Make sure to run all subspecs, to find failing cases 2017-05-17 11:16:49 -07:00
publish-npm.js Circle CI releases now work with Java 8 2016-10-28 07:58:52 -07:00
react-native-xcode.sh Fix Incorrect Build Script Bash False-Matching 2017-05-26 02:45:20 -07:00
run-android-ci-instrumentation-tests.js Skip flaky ScrollView tests 2017-03-13 13:30:31 -07:00
run-android-emulator.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
run-android-local-integration-tests.sh Skip flaky ScrollView tests 2017-03-13 13:30:31 -07:00
run-android-local-unit-tests.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
run-ci-e2e-tests.js Add --maxWorkers flag and allow transformers to run in-band. 2017-06-13 09:16:03 -07:00
run-instrumentation-tests-via-adb-shell.sh Stabilized TestIdTestApp integration test 2016-05-26 13:43:29 -07:00
sync-css-layout.sh Rename directories 2016-12-07 05:14:12 -08:00
test-manual-e2e.sh Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
try-n-times.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
validate-android-device-env.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
validate-android-sdk.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
validate-android-test-env.sh Add OSS website test, clean up test names, remove website dependency on sass 2017-03-30 15:30:41 -07:00