我在 Dart 项目中创建了一个文件夹(名为 webapp),我在其中放置了一些服务器端类。当我运行 pub install
(或 pub update
)以导入我在项目中使用的库时,依赖项已正确下载,并且在中创建了指向此文件夹的一些链接一些默认文件夹(例如:web、out ecc)。
有一种方法可以自动生成指向我的webapp(或任何自定义文件夹)文件夹中的包文件夹的链接吗?
最佳答案
我认为不可能让 pub
在非标准目录中生成 packages
。
在pub install documentation您可以阅读 Linked packages
directories 部分:
It assumes your package is laid out according to the package layout guide, and creates a linked
packages
directory inbin/
,test/
, andexample/
, as well as their subdirectories.
关于dart - 在自定义文件夹中添加包链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14709106/