We currently have a monorepo project that is standalone, and we want to modularize the app into individual modules that can be worked on separately and deployed independently. We are using Nx and aim to leverage its capabilities along with Module Federation to achieve this. My idea is to create microfrontends while keeping the monorepo, but my team insists that we need different repositories for different modules and libraries since they believe there isn’t a way to deploy them separately while keeping them in one repo.
I’ve read articles suggesting the use of Nx affected to handle this, but I would like to hear your suggestions on how to approach this while maintaining the monorepo. Specifically, if we merge changes to the develop branch, how can we ensure that only module 2 is deployed and not module 1? An example deploy YAML file, an article or an existing project setup would be very helpful.