最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Bower install dependency to a specific subdirectory - Stack Overflow

programmeradmin4浏览0评论

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 ponents/angular/angular-i18n/?

Help would be totally appreciated.

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 ponents/angular/angular-i18n/?

Help would be totally appreciated.

Share Improve this question asked Oct 23, 2013 at 21:29 JazzuzzJazzuzz 4906 silver badges12 bronze badges 1
  • 2 You can also just provide a .bowerrc file as mentioned in [this post][1] [1]: stackoverflow./questions/19671533/… – krico Commented Oct 28, 2014 at 19:30
Add a ment  | 

2 Answers 2

Reset to default 9

You can't. Bower uses a single location to store packages. However you can use tools like one of these grunt tasks to copy it over in the build-step.

you can also try to use this fork: https://github./hyperweb2/upt

that also implements subdirectory installation feature

发布评论

评论列表(0)

  1. 暂无评论