1.0.1 • Published 10 years ago
bower-move v1.0.1
bower-move
Tired of having a big bower_components
directory full of files you don't need? Start using bower-move. You can specify locations where your bower dependencies should be moved.
Usage
Really simple. Just add a bowerMove
object to your bower.json
:
{
"name": "My great app",
"dependencies": {
"bootstrap": "latest",
"angular": "latest"
},
"bowerMove": {
"bootstrap": {
"dist/css/*.min.css": "assets/css/", // Use a regex.
"fonts": "assets/fonts/" // Use a regular filename.
},
"angular": {
"*.min.js": "app/"
}
}
}
Then, run bower-move
in the same directory of your bower.json
.
Command Line
There are two optionnal parameters:
--skip-install
if specified, bower-move will not fetch the dependencies before moving them. This may cause troubles.--delete
after the dependencies have been move, bower-move will delete thebower_components
directory.
You don't need to worry about creating the resulting structure, the tool will do it for you.
Installation
Simply run npm install -g bower-move
. It will fetch the required Node dependencies.