什么可以是dart上的pubspec的部署策略 [英] what could be a deployment strategy with pubspec on dart

查看:89
本文介绍了什么可以是dart上的pubspec的部署策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际部署具有pubspec.yaml依存关系的dart程式码的最佳方法是什么?我过去做的一件常见事情是创建演示并部署到github页面。现在pub使用符号链接,依赖不会被推送到github。也想知道这是否应该是一个bug的文件为pub,能够部署依赖。

What would be the best way to actually deploy dart code that has pubspec.yaml dependencies? A common thing I've done in the past was to create demos and deploy to github pages. Now that pub uses symbolic links the dependencies do not get pushed to github. Also wondering if this should be a bug to file for pub, being able to deploy with dependencies.

推荐答案

我们还没有,但pub会在未来支持 deploy 命令。这将做类似运行dart2js和连接/缩小你的代码。它也将物理上带来所有的依赖,所以你没有符号链接。最终结果将是包含程序包需要运行的所有内容的单个目录。

We aren't there yet, but pub will in the future support a deploy command. That will do things like run dart2js and concatenate/minify your code. It will also physically bring in all of your dependencies so you don't have symlinks. The end result will be a single directory that contains everything your package needs to run.

这篇关于什么可以是dart上的pubspec的部署策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆