I created a universal app with Expo for native mobile and web. It works wonderfully. I think a monorepo for local code sharing should efficient than publishing to a private package to Github registry (It works like a charm though).
I thought it’s just a 5 min setup. But I was wrong… Still very easy though. In this blog, we will use monorepo to share code between the backend(Serverless framework) and frontend(Expo).
I always try my best to introduce less overhead and less dependencies to solve a problem.
lerna: Less overhead. And We do not need
- Yarn version:
- Typescript support for all three modules
- I just want to focus on coding without worrying about building pipeline
- No no no, no Babel, that’ll introduce loads of dev-dependencies, I want a clean tree.
- I will show you how to use as well