Skip to content
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

Use main.jsbundle in iOS template for production build #22531

Closed
wants to merge 1 commit into from

Conversation

radeno
Copy link
Contributor

@radeno radeno commented Dec 5, 2018

Default HelloWorld template for iOS doesn't make production main.jsbundle. This is little bit confusing in compare with Android building app when everything works one first run.

Make it seamless, reduce confuse.
Based on docs https://facebook.github.io/react-native/docs/running-on-device#3-configure-app-to-use-static-bundle

Fixes #22335
Fixes #18562

Test Plan:

CI green

Changelog:

[iOS] [Changed] - Use main.jsbundle in template for production build

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 5, 2018
@radeno radeno changed the title Use static bundle for iOS production in base template Locate main.jsbundle in iOS template for production build Dec 5, 2018
@radeno radeno changed the title Locate main.jsbundle in iOS template for production build Use main.jsbundle in iOS template for production build Dec 5, 2018
@react-native-bot react-native-bot added Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. Platform: iOS iOS applications. labels Dec 5, 2018
@hramos
Copy link
Contributor

hramos commented Dec 5, 2018

The CLI has been moved to https://github.com/react-native-community/react-native-cli. The /local-cli directory on this repo will be deleted soon.

@hramos hramos closed this Dec 5, 2018
@kelset
Copy link
Collaborator

kelset commented Dec 6, 2018

@hramos what about @radeno making this PR against 0.57 & 0.58 branches? They both still rely on the CLI folder.

@grabbou grabbou reopened this Dec 6, 2018
@grabbou
Copy link
Contributor

grabbou commented Dec 6, 2018

@hramos thanks for keeping an eye on the CLI-related PRs! We have agreed that the default template located in local-cli/templates/HelloWorld will stay in the main repo to make it easy to version it and make sure it always works with latest React Native.

I guess this can change in the future, but for now, that's where this PR should go.

CC: @cpojer

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Dec 7, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

@radeno merged commit a2ef5b8 into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Dec 7, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 7, 2018
kelset pushed a commit that referenced this pull request Dec 12, 2018
Summary:
Default HelloWorld template for iOS doesn't make production main.jsbundle. This is little bit confusing in compare with Android building app when everything works one first run.

Make it seamless, reduce confuse.
Based on docs https://facebook.github.io/react-native/docs/running-on-device#3-configure-app-to-use-static-bundle

Fixes #22335
Fixes #18562
Pull Request resolved: #22531

Differential Revision: D13372773

Pulled By: cpojer

fbshipit-source-id: 888c675b7d11b1a323445e092ec9ff83924c42f4
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
6 participants