I'm building a yeoman generator for simple websites. I want to include a popular JavaScript library in my scaffold.
It's easy enough with bower install <mylib>
. Bower then installs the library in the directory bower_components
.
How can configure bower to install that particular library in a particular directory?
Create a file called
.bowerrc
in the same directory as yourbower.json
with the contents:Bower will then install all dependencies in the directory "bower" or whatever directory you specify.
Hope that helps!