Move codegen root directory from Libraries to src#42402
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
3864889 to
997371f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
997371f to
13eb234
Compare
Base commit: a758694 |
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
13eb234 to
7869a8f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
7869a8f to
50522ce
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
50522ce to
241d4f2
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
241d4f2 to
d2b0ddf
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
d2b0ddf to
5e3af20
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
5e3af20 to
b9514a0
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
8053a3c to
c691ee8
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
c691ee8 to
d089701
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
d089701 to
fc31df6
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
fc31df6 to
db40c6f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
db40c6f to
9ab8256
Compare
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
9ab8256 to
83c45f6
Compare
Summary: Pull Request resolved: facebook#42385 This adds support for having JS files in a `src` directory within the `react-native` package. The plan is to have 2 subdirectories there: * `react-native/src/private` for private modules, with any nested directories (e.g.: `react-native/src/private/dom/nodes/ReadOnlyNode.js`). * `react-native/src/public` for public modules, without nested directories. The plan is that the individual modules created in this directory will be public through the index module or directly via something like `react-native/View` (mapped to `react-native/src/public/View`, or a `dist` directory in the published npm package—details TBD). The enforcement of private modules being inaccessible from outside the `react-native` package will be added soon by huntie. Changelog: [internal] Reviewed By: huntie Differential Revision: D52875999 fbshipit-source-id: 58ee306f4fafd57ea73e9fd5c5401cce73013a26
Summary: Pull Request resolved: facebook#42386 The new DOM APIs are completely private at the moment, so they make them a good candidate to test the new directory structure (and make sure everything works correctly in CI, etc.). This moves those files to `src/private/dom`. Changelog: [internal] Reviewed By: huntie Differential Revision: D52875998 fbshipit-source-id: 945e80739b3afa535079ef24e6802f4d7780b565
Summary: Pull Request resolved: facebook#42402 Now that we have 2 top level directories for JS files in the `react-native` package, we need to choose where to put the native module and native component specs, because our current infra only supports a single directory. The options we had are: 1. Keep specs in the current directory (`Libraries`). This is a problem because it encourages us to keep adding modules in this "deprecated" directory. 2. Move specs to the new `src` directory. This requires moving the current files, but from now only we can create new specs in a private directory. 3. Modify the infra to allow multiple directories. This changes the public API for something it's likely only going to be used here. In this PR I went for option 2) because it's the most future-proof, even though it requires a little bit more work now. I created a script to automatically copy all the specs for modules and components to `src/private/specs/components` and `src/private/specs/modules`, and changed their current locations to serve as a proxy for the new location (to avoid breaking a potentially public API). `src/private/specs` isn't meant to be their final location. We should probably still colocate native module/component specs with the rest of their code, but we can do so when we move the code from `Libraries` to `src/private`. Changelog: [internal] Reviewed By: cortinico Differential Revision: D52919566 fbshipit-source-id: 79d2cc42bc49e2efa5c87c66975a46f469a70240
|
This pull request was exported from Phabricator. Differential Revision: D52919566 |
83c45f6 to
dce8797
Compare
|
This pull request has been merged in 5e8ce6c. |
|
This pull request has been reverted by 692f727. |
Summary: Changelog: [internal]
Differential Revision: D52919566