如何将角度应用从monorepo转换为polyrepo?
我分别创建了三个具有单个工作空间或单个项目和单个存储库的角度应用程序。
我可以使用 @Angular-Architects/模块 - 函数共享它们之间的模块。但是我无法共享组件和服务。
如何在不同的工作空间或项目之间共享服务和组件?
还是
如何实现基于Poly Repo的角度应用?
谢谢。
I have created three angular applications separately that have an individual workspace or individual projects and individual repositories.
I can share the modules among them by using the @angular-architects/module-federation. But I am unable to share the components and services.
How can I share the services and components among different workspaces or projects ?
Or
How can I implement Poly Repo based Angular Application?
Thank You.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 nx 工作区,这将允许您管理多个存储库。
有一个名为“ libs” in工作区的文件夹,我们可以从那里添加通用模块,我们可以向所有其他存储库共享组件和服务。
阅读NX文档以获取更多信息。 https://nx.dev/getting-petting-petting-started/nx-anded/nx-and-ang-angular
Use nx workspace, Which will allow you manage multiple repositories.
There is a folder called 'libs'in workspace which we can add common module from there we can share components and services to all other repositories.
Read nx documentation for more information. https://nx.dev/getting-started/nx-and-angular