I believe that the forms presented above are good, but if you have the need to manage your dependencies by specifying the folders, however, each folder is in a specific folder according to the type of the script (css in a folder, and javascript in another), you can use bower-installer
.
To install it you simply run:
npm install -g bower-installer
After this, you must set the bower.json
, the "path"
value within install
, specifying the installation folders for each file extension.
See:
{
"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 "sources"
attribute defines which files you want to install in the specified directories.
Then, after this setting, just run the command:
bower-installer
I'm using it and I think it's very efficient.