您可以为Bower定义工作目录吗?



您可以为鲍尔定义工作目录吗?还是告诉我要安装在哪里运行?IE:喜欢作曲家工作目录标志?

--working-dir (-d) If specified, use the given directory as working directory.

编辑:鲍尔现在支持config.cwd http://github.com/bower/spec/spec/blob/master/master/config.md#cwd

bower install jquery --config.cwd=~/my-sub-project

这似乎是Bower Canary中的一种选择,但是当前不支持 ,但根据Bower贡献者[Stazor] [1]

使用Bower-Canary,您有能力指定-config.cwd和 -Config.Directory。

发布时会像这样起作用

bower install jquery --config.cwd=client

https://github.com/bower/bower/issues/212

bower的工作目录在文件中

.bowerrc

以以下格式

{
  "directory": "resources/assets/bower"
}

Bower使用当前的工作目录。只需 cd进入您想要的目录即可。无需选择。

最新更新