-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Do not require pod install
after react-native init
#24638
Changes from all commits
4f7134a
fa10a49
4d5cf81
c121363
a440d0c
8b0289f
83d0ba7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# 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. | ||
|
||
PACKAGE_LOCATION=$(pwd)/react-native-$1.tgz | ||
|
||
# Pack React Native into a `.tgz` file so we can run from source | ||
npm pack | ||
|
||
# Set the React Native version to point to the `.tgz` file | ||
node scripts/set-rn-template-version.js "file:$PACKAGE_LOCATION" | ||
|
||
# We need to generate CocoaPods project. To do so, we install depdendencies | ||
# locally and manually run `pod install` | ||
cd template | ||
|
||
npm install | ||
grabbou marked this conversation as resolved.
Show resolved
Hide resolved
|
||
(cd ios && pod install) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'll want to pass There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm... mind elaborating a bit what that flag is doing? We have local pods (from local spec within the repo, so no need to update the whole CocoaPods repo) and we also rm -rf Pods anyway. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. forgot it's local, you're right |
||
|
||
# Dependencies are installed on the client-side | ||
rm -rf node_modules | ||
|
||
# Do not ship a package.json that points to a `tgz` | ||
git checkout package.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.