1

How do I install a dependency into a specific subdirectory using Bower? I'm working on an application built on AngularJS that requires localization. One of the libraries I'm using is looking for localization files in angular/angular_i18n. However, I'm developing with Angular 1.2 rc3 and the localization files are not part of the package so I have to install them separately.

How can I bower install angular-i18n into components/angular/angular-i18n/?

Help would be totally appreciated.

4

2 回答 2

9

你不能。Bower 使用单一位置来存储包裹。但是,您可以使用这些 grunt 任务之一之类的工具在构建步骤中将其复制过来。

于 2013-10-23T22:02:15.473 回答
0

你也可以尝试使用这个 fork: https ://github.com/hyperweb2/upt

也实现了子目录安装功能

于 2014-07-07T11:33:17.743 回答