-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest React Native CLI (#24517)
Summary: Updates React Native to use latest CLI. Changes: - No more `--reactNativePath`, define it once in the configuration file. This reverts the previous PR that added this flag - Add `platforms` and `commands` - React Native now defines platform like any other package. There's no longer concept of "out-of-tree" platform. All are treated equally. If React Native works, any other platform will work too. - Updates `jest/hasteImpl.js` to use public CLI interface (`loadConfig`) instead of `findPlugins` and removes a weird conditional that checks for CI presence. [INTERNAL] - Update React Native CLI Pull Request resolved: #24517 Differential Revision: D15044762 Pulled By: cpojer fbshipit-source-id: 379b61e842e619312c542173219a7d326663cf24
- Loading branch information
1 parent
8d3e168
commit 706f67a
Showing
11 changed files
with
313 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
'use strict'; | ||
|
||
const ios = require('@react-native-community/cli-platform-ios'); | ||
const android = require('@react-native-community/cli-platform-android'); | ||
|
||
module.exports = { | ||
commands: [...ios.commands, ...android.commands], | ||
platforms: { | ||
ios: { | ||
linkConfig: ios.linkConfig, | ||
projectConfig: ios.projectConfig, | ||
dependencyConfig: ios.dependencyConfig, | ||
}, | ||
android: { | ||
linkConfig: android.linkConfig, | ||
projectConfig: android.projectConfig, | ||
dependencyConfig: android.dependencyConfig, | ||
}, | ||
}, | ||
/** | ||
* Used when running RNTester (with React Native from source) | ||
*/ | ||
reactNativePath: '.', | ||
project: { | ||
ios: { | ||
project: './RNTester/RNTester.xcodeproj', | ||
}, | ||
android: { | ||
sourceDir: './RNTester', | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.