Explaining how to package ReactNative for Nexus/Maven deployment.
Summary: **Motivation** I needed to do this today. It's explained in code in the repository, but not included in the actual documentation. As React Native continues to grow, this is something that will be used more and more by the community. **Test plan (required)** No test plan required, this is simply a documentation change to add things that are only explained in code comments currently. Closes https://github.com/facebook/react-native/pull/12938 Differential Revision: D4709339 Pulled By: mkonicek fbshipit-source-id: a56c7573c3fa25a4059657b95b482b641ff229ff
This commit is contained in:
parent
957b55c769
commit
a0b5a6efe5
|
@ -143,6 +143,18 @@ gradle.projectsLoaded {
|
|||
}
|
||||
```
|
||||
|
||||
## Building for Maven/Nexus deployment
|
||||
|
||||
If you find that you need to push up a locally compiled React Native .aar and related files to a remote Nexus repository, you can.
|
||||
|
||||
Start by following the `Point Gradle to your Android SDK` section of this page. Once you do this, assuming you have Gradle configured properly, you can then run the following command from the root of your React Native checkout to build and package all required files:
|
||||
|
||||
```
|
||||
./gradlew ReactAndroid:installArchives
|
||||
```
|
||||
|
||||
This will package everything that would typically be included in the `android` directory of your `node_modules/react-native/` installation in the root directory of your React Native checkout.
|
||||
|
||||
## Testing
|
||||
|
||||
If you made changes to React Native and submit a pull request, all tests will run on your pull request automatically. To run the tests locally, see [Testing](docs/testing.html).
|
||||
|
|
Loading…
Reference in New Issue