monorepo boilerplate
complete
S
Stringsaeed
create a new boilerplate for monorepo that has web/native package + core for shared code
Axel Delafosse
Here is an example showing how to create a universal React app using Expo and Next.js in a monorepo: https://github.com/axeldelafosse/expo-next-monorepo-example.
It's using the latest versions and includes great librairies like Reanimated. You can easily create a custom development client and use Expo Applications Services to build your app quickly and iterate fast.
Thiago Henrique Domingues
Does anyone have any example of a monorepo with an application created using bare workflow? Today I use Lerna to manage my monorepo, but intending to migrate to NX in the future.
Axel Delafosse
complete
Axel Delafosse
Here is an example showing how to create a universal React app using Expo and Next.js in a monorepo: https://github.com/axeldelafosse/expo-next-monorepo-example.
It's using the latest versions and includes great librairies like Reanimated. You can easily create a custom development client and use Expo Applications Services to build your app quickly and iterate fast.
João Portela
if this helps, I've created an example using Expo, Storybook and Yarn Workspaces: https://github.com/jportela/expo-storybook-workspaces
It was more difficult to set this up than I thought it would be, so I've written a blog post about it: https://joaoportela.com/blog/react-native-isolation-storybook-expo-workspaces
André Fontenelle
João Portela: Nice article. Is there any particular reason why you opted to defer the transpilation of the UI components?
João Portela
André Fontenelle: thanks! I've figured that deferring the transpilation would make development faster (no need to add two
dev
scripts running in parallel). This comes at the expense of encapsulation (so the ui
package could stand on its own, and eventually be published as a standalone library). I'd actually like to explore setting up webpack on the ui
package, so it's properly encapsulatedKevin Rodríguez
I think I can do it!
Brent Vatne
yeah this would be nice! want to create one? you can use expo-yarn-workspaces to make it easier to set up
Sébastien Lorber
Interested to contribute to this effort.
My friend Xavier Carpentier has a good initial setup using yarn workspaces and expo-yarn-workspaces here https://github.com/xcarpentier/vitrine.
I'd like such a monorepo example to include:
- shared core/util/component packages
- storybook
- frontends in various stacks (gatsby, next, cra...) using expo webpack config (I maintain the Gatsby plugin)
- expo mobile app