I think the forms presented above are good, but if you have the need to manage your dependencies by specifying the folders, but each of them staying in a specific folder according to the type of script (css in one folder, and javascript in another), you can use the bower-installer
.
To install it you simply wheel:
npm install -g bower-installer
After that, you should set on bower.json
, the value "path"
inside install
, specifying the installation folders of each file extension.
Behold:
{
"name" : "test",
"version": "0.1",
"dependencies" : {
"jquery-ui" : "latest"
},
"install" : {
"path" : {
"css": "minha_pasta_personalizada/arquivos_css",
"js": "minha_pasta_personalizada/arquivos_js"
},
"sources" : {
"jquery-ui" : [
"components/jquery-ui/ui/jquery-ui.custom.js",
"components/jquery-ui/themes/start/jquery-ui.css"
]
}
}
}
The assignment "sources"
defines which files you want to install in the specified directories.
Then, after this definition, just run the command:
bower-installer
I’m using it and I think it’s very efficient.
you tried to create . bowerrc and set the directory?
– haykou
Not yet, I’ll try now that you’ve spoken to me. Actually, this is the first time I’ve dealt with
bower
;– Wallace Maxters
Take a look here http://bower.io/docs/config/, I believe solves your problem
– haykou