can you define the working directory for bower? or tell it where I want the install to run at? ie: like the composer working directory flag?
--working-dir (-d) If specified, use the given directory as working directory.
can you define the working directory for bower? or tell it where I want the install to run at? ie: like the composer working directory flag?
--working-dir (-d) If specified, use the given directory as working directory.
编辑: Bower 现在支持 config.cwd http://github.com/bower/spec/blob/master/config.md#cwd
bower install jquery --config.cwd=~/my-sub-project
根据凉亭贡献者 [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
进入您想要的目录。无需选择。