如何将角度应用从monorepo转换为polyrepo?

发布于 2025-02-13 15:36:40 字数 433 浏览 0 评论 0原文

我分别创建了三个具有单个工作空间或单个项目和单个存储库的角度应用程序。

我可以使用 @Angular-Architects/模块 - 函数共享它们之间的模块。但是我无法共享组件和服务。

如何在不同的工作空间或项目之间共享服务和组件?

还是

如何实现基于Poly Repo的角度应用?

谢谢。

app2

app1

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.

App2

App1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸里的那抹悲凉 2025-02-20 15:36:40

使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文