-
-
Notifications
You must be signed in to change notification settings - Fork 408
feat(metro): add metro-plugin-rock and migrate examples to Rock #4652
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
Open
jbroma
wants to merge
16
commits into
module-federation:main
Choose a base branch
from
jbroma:refactor/plugin-rock-migration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0c190b1
feat(metro): add metro-plugin-rock for ROCKjs integration
jbroma c7326fe
refactor(metro): migrate example apps and CI from RNEF to ROCKjs
jbroma e2c8580
chore: add changeset for metro-plugin-rock
jbroma 3893b00
chore: split changeset into separate rock and rnef entries
jbroma c7f6b01
docs(metro): update website docs for Rock integration
jbroma c4895bb
fix(metro): use providerGitHub() instead of deprecated shorthand
jbroma bdea246
fix(metro): use local Rock actions with working-directory fix
jbroma be653ec
ci: retrigger e2e
jbroma 77e0537
chore(metro): revert to upstream Rock actions with TODO for working-d…
jbroma f0e6ad0
chore: merge main and resolve conflicts
jbroma 0351c8f
fix(metro): pin Rock actions to commits with working-directory fix
jbroma 3123aef
chore(metro): pin Rock actions to v3 commits
jbroma f309828
fix(metro): use full SHA for pinned Rock actions
jbroma 1d5c81b
ci: retrigger e2e
jbroma c5cfb76
fix(metro): setup Java without Gradle cache to prevent Android e2e hang
jbroma 150ea0e
ci: retrigger e2e
jbroma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| '@module-federation/metro-plugin-rock': minor | ||
| --- | ||
|
|
||
| feat(metro): add metro-plugin-rock for Rock integration |
This file contains hidden or 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 hidden or 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,5 @@ | ||
| --- | ||
| '@module-federation/metro-plugin-rnef': patch | ||
| --- | ||
|
|
||
| chore(metro): deprecate metro-plugin-rnef in favor of metro-plugin-rock |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -77,5 +77,6 @@ yarn-error.log | |
| # build artifacts | ||
| dist/ | ||
|
|
||
| # RNEF | ||
| # Rock | ||
| .rock | ||
| .rnef | ||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } | ||
| plugins { id("com.facebook.react.settings") } | ||
| extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand(['npx', 'rnef', 'config', '-p', 'android']) } | ||
| extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand(['npx', 'rock', 'config', '-p', 'android']) } | ||
| rootProject.name = "MFExampleHost" | ||
| include ':app' | ||
| includeBuild('../node_modules/@react-native/gradle-plugin') |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,17 @@ | ||
| // @ts-check | ||
| import {pluginMetroModuleFederation} from '@module-federation/metro-plugin-rock'; | ||
| import {platformAndroid} from '@rock-js/platform-android'; | ||
| import {platformIOS} from '@rock-js/platform-ios'; | ||
| import {pluginMetro} from '@rock-js/plugin-metro'; | ||
| import {providerGitHub} from '@rock-js/provider-github'; | ||
|
|
||
| /** @type {import('rock').Config} */ | ||
| export default { | ||
| bundler: pluginMetro(), | ||
| platforms: { | ||
| ios: platformIOS(), | ||
| android: platformAndroid(), | ||
| }, | ||
| remoteCacheProvider: providerGitHub(), | ||
| plugins: [pluginMetroModuleFederation()], | ||
| }; |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -77,5 +77,6 @@ yarn-error.log | |
| # build artifacts | ||
| dist/ | ||
|
|
||
| # RNEF | ||
| # Rock | ||
| .rock | ||
| .rnef | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.