From d069a761c2389de81ca7e51c6d00b0c6e2be6552 Mon Sep 17 00:00:00 2001 From: chirag-singhal Date: Thu, 27 Aug 2020 15:31:31 +0530 Subject: [PATCH] update paths to packges folder --- .buckconfig | 2 +- CONTRIBUTING.md | 4 ++-- package.json | 4 ++-- packages/rn-tester/README.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.buckconfig b/.buckconfig index dc22ddc157f6..074064747960 100644 --- a/.buckconfig +++ b/.buckconfig @@ -11,4 +11,4 @@ jcenter = https://jcenter.bintray.com/ [alias] - rntester = //RNTester/android/app:app + rntester = //packages/rn-tester/android/app:app diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c8b28345822a..5aad570ec841 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,12 +72,12 @@ We recommend referring to the [CONTRIBUTING](https://github.com/facebook/react-n ## Contributing Code -Code-level contributions to React Native generally come in the form of [pull requests](https://help.github.com/en/articles/about-pull-requests). These are done by forking the repo and making changes locally. Directly in the repo, there is the [`RNTester` app](/RNTester) that you can install on your device (or simulators) and use to test the changes you're making to React Native sources. +Code-level contributions to React Native generally come in the form of [pull requests](https://help.github.com/en/articles/about-pull-requests). These are done by forking the repo and making changes locally. Directly in the repo, there is the [`rn-tester` app](/packages/rn-tester) that you can install on your device (or simulators) and use to test the changes you're making to React Native sources. The process of proposing a change to React Native can be summarized as follows: 1. Fork the React Native repository and create your branch from `master`. -2. Make the desired changes to React Native sources. Use the `RNTester` app to test them out. +2. Make the desired changes to React Native sources. Use the `packages/rn-tester` app to test them out. 3. If you've added code that should be tested, add tests. 4. If you've changed APIs, update the documentation, which lives in [another repo](https://github.com/facebook/react-native-website/). 5. Ensure the test suite passes, either locally or on CI once you opened a pull request. diff --git a/package.json b/package.json index f95f03006ccf..fea72b6692dd 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,7 @@ "android.emu.release": { "binaryPath": "packages/rn-tester/android/app/build/outputs/apk/hermes/release/app-hermes-x86-release.apk", "testBinaryPath": "packages/rn-tester/android/app/build/outputs/apk/androidTest/hermes/release/app-hermes-release-androidTest.apk", - "build": "./gradlew :packages:rn-tester:android:app:assembleRelease RNTester:android:app:assembleAndroidTest -DtestBuildType=release", + "build": "./gradlew :packages:rn-tester:android:app:assembleRelease :packages:rn-tester:android:app:assembleAndroidTest -DtestBuildType=release", "type": "android.emulator", "device": { "avdName": "Nexus_6_API_29" @@ -139,7 +139,7 @@ "android.emu.debug": { "binaryPath": "packages/rn-tester/android/app/build/outputs/apk/hermes/debug/app-hermes-x86-debug.apk", "testBinaryPath": "packages/rn-tester/android/app/build/outputs/apk/androidTest/hermes/debug/app-hermes-debug-androidTest.apk", - "build": "./gradlew :packages:rn-tester:android:app:assembleDebug RNTester:android:app:assembleAndroidTest -DtestBuildType=debug", + "build": "./gradlew :packages:rn-tester:android:app:assembleDebug :packages:rn-tester:android:app:assembleAndroidTest -DtestBuildType=debug", "type": "android.emulator", "device": { "avdName": "Nexus_6_API_29" diff --git a/packages/rn-tester/README.md b/packages/rn-tester/README.md index e286de8cb517..4c9733acf953 100644 --- a/packages/rn-tester/README.md +++ b/packages/rn-tester/README.md @@ -25,7 +25,7 @@ You'll need to have all the [prerequisites](https://github.com/facebook/react-na Start an Android emulator. cd react-native - ./gradlew :RNTester:android:app:installJscDebug + ./gradlew :packages:rn-tester:android:app:installJscDebug ./scripts/packager.sh _Note: Building for the first time can take a while._