简体   繁体   English

在企业(私有)环境中托管 dart / flutter package 的官方方式是什么?

[英]What is the official way to host dart / flutter package in enterprise (private) environment?

Since the package pub_server is discontinued.由于 package pub_server已停产。 But get recommended for that use case in the README.md from pub-dev但是在pub-dev 的 README.md中为该用例推荐

So I'm a bit confused about what is now the recommended way.所以我对现在推荐的方式有点困惑。

I know about the package unpub but it doesn't feel right to use it in an environment.我知道 package unpub但在环境中使用它感觉不对。

Is there something official from the dart team which is not discontinued? dart团队有什么官方没有停产吗?

I would not use pub server.我不会使用 pub 服务器。 I would just use git dependencies directly to your git repositories.我只会将 git 依赖项直接用于您的 git 存储库。 Looks like authentication is supported also.看起来也支持身份验证。 See here for details.有关详细信息,请参见此处

You can use internal private pub server.您可以使用内部私人 pub 服务器。 Flutter team use the same for Internal private packages and plugins. Flutter 团队对内部私有包和插件使用相同的。

私人酒吧服务器

https://pub.dev/packages/unpub https://pub.dev/packages/unpub

To use this server you have to install mongodb.要使用此服务器,您必须安装 mongodb。

https://docs.mongodb.com/manual/installation/ https://docs.mongodb.com/manual/installation/

If just published unpubd which is a clone of the pub.dev server that you can run internally.如果刚刚发布了 unpubd,它是您可以在内部运行的 pub.dev 服务器的克隆。

Its essentially an installer for unpub.它本质上是 unpub 的安装程序。

https://pub.dev/packages/unpubd https://pub.dev/packages/unpubd

If just published unpubd which is a clone of the pub.dev server that you can run internally.如果刚刚发布了 unpubd,它是您可以在内部运行的 pub.dev 服务器的克隆。

https://pub.dev/packages/unpubd https://pub.dev/packages/unpubd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM