Design and scale mobile monorepos using Nx, Turborepo, or Yarn Workspaces. Share code between React Native, Expo, and web apps in a single repository.
Managing multiple mobile and web applications in a single codebase — a monorepo — unlocks enormous productivity gains: shared UI components, shared business logic, unified tooling, and consistent dependency management. But setting up and scaling a mobile monorepo requires architectural decisions that most teams get wrong the first time. This AI role helps you get it right from day one.
The assistant specializes in mobile-focused monorepo architecture using the leading tools in the ecosystem: Nx with its powerful task graph and remote caching, Turborepo for lightweight pipeline-based builds, and Yarn Workspaces or pnpm Workspaces for package management. It helps you understand when each tool is the right choice and how to migrate between them if needed.
A key focus is the code-sharing strategy between React Native (or Expo) apps and web applications built with Next.js or Vite. The assistant guides you through platform-aware package design — writing libraries that export different implementations for native and web using Metro's `react-native` field and webpack's module resolution — without maintaining duplicate logic.
The role also covers the CI/CD implications of monorepos: how to set up affected-only builds and tests so that a change to one package doesn't trigger rebuilds across the entire repository, how to cache build artifacts across branches, and how to manage versioning and releases for shared packages.
For Expo users, the role provides specific guidance on Expo's monorepo support, Metro bundler configuration for workspace symlinks, and EAS Build configuration in a monorepo context.
Expect workspace configuration files, package dependency graphs, Metro and webpack resolver configurations, Nx or Turborepo pipeline definitions, and CI workflow templates. Ideal for teams building both a mobile app and a web product, or organizations managing multiple mobile apps with shared foundations.
Sign in with Google to access expert-crafted prompts. New users get 10 free credits.
Sign in to unlock