react-native-macos/scripts
Dan Abramov a52e6d1dbb Unify "Hot Reloading" and "Reload-on-Save" into "Fast Refresh"
Summary:
We have too many options in the Dev Menu, and they're really hard to pick from. They're also somewhat conflicting. This replaces two menu choices that have a similar purpose (faster iteration cycle) with one.

"Fast Refresh" tries to only update the affected modules, but falls back to doing a full reload if the update can't be handled by the React components.

If for some reason you prefer the "Reload-on-Save" behavior, please:

- Reach out to me so I can learn more about your use case.
- As a workaround, you can add `if (__DEV__) require.Refresh.forceFullRefresh = true` to your app's entry point to always do a full refresh.

Also note that I only removed the user-facing part of "Reload-on-Save". So if you have automation depending on it, that's gonna keep working.

I moved it above Systrace since it's a more generic feature.

As a total aside nit, I renamed "Enable Inspector" and "Disable Inspector" to "Show Inspector" and "Hide Inspector" because... that's what those options do, really.

Reviewed By: rickhanlonii

Differential Revision: D15958697

fbshipit-source-id: 20e856d56f661fe4d39b5ab47d8c44754bf70f67
2019-06-24 13:54:39 -07:00
..
circleci Bots cleanup, avoid leaving inline reviews when N>5 (#24923) 2019-05-21 19:38:54 -07:00
versiontemplates Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
.packager.env Move YGStyle to seperate file and add constructors 2018-02-20 05:55:36 -08:00
.tests.env Use Xcode 10.2.0 and iOS 12.2 in iOS tests (#24572) 2019-04-24 09:33:17 -07:00
android-e2e-test.js Fix ios/android e2e tests (#24974) 2019-05-21 05:44:29 -07:00
android-setup.sh Bump Android NDK to r19c (#25140) 2019-06-04 13:59:36 -07:00
autolink-ios.rb Delete fishhook 2019-06-12 06:19:32 -07:00
bump-oss-version.js Adjust test manual e2e script to work with new init (#24583) 2019-04-25 02:03:10 -07:00
generate-rncore.sh Organize files 2019-05-22 06:02:03 -07:00
ios-configure-glog.sh Upgrade folly to v2018.10.22.00 for iOS (#21976) 2018-10-29 12:13:11 -07:00
ios-install-third-party.sh Allow arbitrary location for third-party iOS dependency cache 2019-04-30 09:49:14 -07:00
launchPackager.bat Use latest React Native CLI (#24517) 2019-04-24 05:09:10 -07:00
launchPackager.command macOS : request interactive input when killing the packager (#19663) 2019-02-24 22:48:17 -08:00
node-binary.sh Fix: use NODE_BINARY when starting packager (#24156) 2019-04-10 07:39:23 -07:00
objc-test-ios.sh Avoid failing Obj-C tests when xcpretty is not installed (#24173) 2019-04-03 10:45:35 -07:00
objc-test-tvos.sh Avoid failing Obj-C tests when xcpretty is not installed (#24173) 2019-04-03 10:45:35 -07:00
objc-test.sh Avoid failing Obj-C tests when xcpretty is not installed (#24173) 2019-04-03 10:45:35 -07:00
packager.sh Fix: use NODE_BINARY when starting packager (#24156) 2019-04-10 07:39:23 -07:00
process-podspecs.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
publish-npm.js Deploy to npm on tagged commits only (#21250) 2018-09-22 09:16:58 -07:00
react-native-xcode.sh fixes Xcode path issues containing whitespace when building Release (#24810) 2019-05-13 07:29:50 -07:00
run-android-ci-instrumentation-tests.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
run-android-emulator.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
run-android-local-integration-tests.sh Use latest React Native CLI (#24517) 2019-04-24 05:09:10 -07:00
run-android-local-unit-tests.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
run-ci-e2e-tests.js Cache CocoaPods specs-repo (#25095) 2019-05-31 16:50:15 -07:00
run-ci-javascript-tests.js Add react-native-oss-e2e job to Sandcastle, running JavaScript e2e tests from open source 2019-04-15 11:07:54 -07:00
run-instrumentation-tests-via-adb-shell.sh Migration of RN-Android OSS tests to Android X 2019-03-17 08:13:30 -07:00
set-rn-template-version.js Adjust test manual e2e script to work with new init (#24583) 2019-04-25 02:03:10 -07:00
sync-css-layout.sh Clean up instances of scripts/signedsource.py 2019-03-14 13:42:27 -07:00
test-manual-e2e.sh Unify "Hot Reloading" and "Reload-on-Save" into "Fast Refresh" 2019-06-24 13:54:39 -07:00
try-n-times.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
validate-android-device-env.sh Use ShellCheck (#19681) 2018-09-28 17:03:24 -07:00
validate-android-sdk.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
validate-android-test-env.sh fix validate-android-test-env.sh (#22961) 2019-01-14 10:54:18 -08:00
validate-ios-test-env.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00