react/scripts
Brian Vaughn c22b94f14a ReactNative flat renderer bundles (#9626)
* Split ReactNativeFiber into separate ReactNativeFiberRenderer module
Hopefully this is sufficient to work around Rollup circular dependency problems. (To be seen in subsequent commits...)

* Split findNodeHandle into findNodeHandleFiber + findNodeHandleStack
This allowed me to remove the ReactNative -> findNodeHandle injections, which should in turn allow me to require a fully-functional findNodeHandle without going through ReactNative. This will hopefully allow ReactNativeBaseomponent to avoid a circular dependency.

* Un-forked findNodeHandle in favor of just inlining the findNode function impl

* takeSnapshot no longer requires/depends-on ReactNative for findNodeHandle
Instead it uses the new, renderer-specific wrappers (eg findNodeHandleFiberWrapper and findNodeHandleStackWrapper) to ensure the returned value is numeric (or null). This avoids a circular dependency that would trip up Rollup.

* NativeMethodsMixin requires findNodeHandler wrapper(s) directly rather than ReactNative
This works around a potential circular dependency that would break the Rollup build

* Add RN_* build targets to hash-finle-name check

* Strip @providesModule annotations from headers for RN_* builds

* Added process.env.REACT_NATIVE_USE_FIBER to ReactNativeFeatureFlags
This is kind of a hacky solution, but it is temporary. It works around the fact that ReactNativeFeatureFlag values need to be set at build time in order to avoid a mismatch between runtime flag values. DOM avoids the need to do this by using injection but Native is not able to use this same approach due to circular dependency issues.

* Moved a couple of SECRET exports to dev-only. Removed SyntheticEvent and PooledClass from SECRET exports. Converted Rollup helper function to use named params.

* Split NativeMethodsMixins interface and object-type

* Add @noflow header to flat-bundle template to avoid triggering Flow problems
When Flow tries to infer such a large file, it consumes massive amounts of CPU/RAM and can often lead to programs crashing. It is better for such large files to use .flow.js types instead.

* NativeMethodsMixin and ReactNativeFiberHostComponent now share the same Flow type

* Collocated (externally exposed) ReactTypes and ReactNativeTypes into single files to be synced to fbsource. ReactNativeFiber and ReactNativeStack use ReactNativeType Flow type

* Build script syncs RN types and PooledClass automatically

* Added optional sync-RN step to Rollup build script

* Added results.json for new RN bundles
2017-05-24 17:06:30 +01:00
..
babel Convert current build system to Rollup and adopt flat bundles (#9327) 2017-04-05 16:47:29 +01:00
bench fix typo in benchmark docs (#9706) 2017-05-18 19:13:59 -04:00
circleci Add React benchmarking infrastructure (#9465) 2017-05-09 17:13:54 +01:00
error-codes Prettier 1.2 (#9462) 2017-04-20 11:18:33 -07:00
facts-tracker Prettier 1.2 (#9462) 2017-04-20 11:18:33 -07:00
fiber Add test for key warning at top level (#9473) 2017-05-21 15:39:25 -07:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest Add package builds for new server renderer and enable tests (#9710) 2017-05-17 17:19:11 -07:00
perf-counters Year-agnostic copyright message, like React Native uses, to prevent the need for yearly changes. 2015-12-29 20:20:32 +01:00
prettier Run prettier on scripts/bench (#9671) 2017-05-11 16:14:17 -07:00
print-warnings Exclude tests from warning print script 2017-04-05 19:51:19 +01:00
release-manager Update release manager with latest change 2017-04-05 17:16:36 +01:00
rollup ReactNative flat renderer bundles (#9626) 2017-05-24 17:06:30 +01:00
shared Fix the print warnings script (#9344) 2017-04-05 18:54:48 +01:00
tasks Always pass error code to CI (#9663) 2017-05-11 13:13:01 +01:00
authors AUTHORS 2013-09-09 23:42:54 -07:00