-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Docs: Monorepo setup guide #1981
Docs: Monorepo setup guide #1981
Comments
In the last few months, I think I have explored all the possible solutions to create a monorepo with react native. To ship a My 2 cents on this: Solito
Example: https://github.com/flexbox/react-native-nextjs-monorepo It's a powerful solution for small/medium teams working on a new project. Problems I faced:
Should I recommend it? Does it benefit Ignite? Universal Monorepo
Example: https://github.com/flexbox/react-native-universal-monorepo Problems I faced:
Should I recommend it? Does it benefit Ignite? Nx
Example: https://github.com/flexbox/react-native-nx-monorepo From my perspective, it's more for a big team where there is a dedicated person —like a software architect— to setup and educates other devs to work with this stack. Problems I faced:
Should I recommend it? Does it benefit Ignite? |
Was there any reason why Ignite migrated away from monorepo? Would be great if we could weigh the pros and cons in the doc as well. |
what happened to this issue? And I'm wondering why there is no |
because infinite red is not a GAFAM, FAAM, whatever giant tech company with thousands of engineer available to maintain it 😅
No because i work as a freelance. I do not feel confident to scaffold an "exotic solution" and leave the team alone without any documentation. @astriskit what kind of app are you building that needs a monorepo? |
@flexbox thanks for answering. And agreeable reasoning. :) App is for a fintech product in crypto space. The plumbing that I was engaged up till like yesternight here has come to a bitterness of overdoing it; I wanted to fill it (sort of re-starting and exploring) with kitchen-sink for web and mobile along with a shared space for a web app. But in light of the real work(the features, screens, current-scope, team, etc.), this became tiny and insignificant very fast for the project - nothing writing some e2e and unit tests can't cover, I believe; Web-app can also be built through the expo/metro rather than shelling it in a separate app (using a different stack). That being said, it was a learning streak - |
Partly our reasoning for not offering a monorepo setup is companies often come to Infinite Red to plug a React Native app into their existing monorepos, which means we need to be pretty adaptable and flexible. With that said, this is on my radar to improve. |
Reactotron has a monorepo with an example ignite app embedded in it: https://github.com/infinitered/reactotron/blob/master/apps/example-app Reactotron uses nx as a task runner but not much else of nx features. This would be a good example to reference of what it would look like to setup an app in a yarn 3 monorepo setup. |
Here is the initial PR @morganick created that could be useful for reference |
In general, the most complicated part of a monorepo setup is making sure that all the config files in the root of an ignite app workspace resolve correctly:
The other tricky part is what package manager you use. npm, yarn, pnpm, and bun all have subtle nuances that affect where workspaces and node_modules are resolved from. These differences are part of why it's tricky to make one true recipe. |
Working on doc/recipe here. |
That's cool. Thanks.
…On Thu, Aug 22, 2024 at 10:56 PM Felipe Peña ***@***.***> wrote:
Working on doc/recipe here
<infinitered/ignite-cookbook#173>.
—
Reply to this email directly, view it on GitHub
<#1981 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGZ5WFZZRUDZHWEPG5VIAWDZSYNLLAVCNFSM54JNOBY2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZQGUZDOOJXGY3A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'd like to add a monorepo setup guide to Ignite's docs. It's a common request these days, and is not a straightforward process (took us a week recently on one client's project).
It would live in
./docs/Monorepo-Setup-Guide.md
most likely.cc @kevinvangelder @leonskim
The text was updated successfully, but these errors were encountered: