IDEA support for Spring boot angular monorepo
Answered
My company is planning on migrating our angular apps to a monorepo approach as is recommended by nx.dev: https://nx.dev/angular/fundamentals/monorepos-automation.
This means our spring boot app is in one git repo and the angular apps are in a separate repo.
Is there a way in Intellij IDEA to combine these into a single project? I'd prefer not to have two projects open.
This may be more of a git question. Can I have a project referencing multiple git repos, 1 per module.
Please sign in to leave a comment.
Yes, IntelliJ IDEA allows to map any directory to any version control, not just the module root, so it's possible to have a single project with multiple modules where every module is in different VCS root, you can even use multiple version controls, not just Git.
Hey Serge that really good news. Can you point me to more info on this? Thanks for the quick response!
Do i just create a project and clone the individual projects to sub-directories?
Yes, you can clone modules to the subdirectories and then import them in the same project.
https://www.jetbrains.com/help/idea/enabling-version-control.html#associate_directory_with_VCS
https://www.jetbrains.com/help/idea/creating-and-managing-modules.html#import-module