I'm making a new project that uses bower from twitter. I created a component.json
to maintain all my dependency like jquery. Then I run bower install
that installs everything in a folder named components
. But I need to install the components in a different folder, e.g. public/components
.
I have tried editing my components.json into:
{
"name": "test",
"version": "1.0.0",
"directory": "public/",
"dependencies": {
"jquery": "*"
}
}
or:
{
"name": "test",
"version": "1.0.0",
"componentsDirectory": "public/",
"dependencies": {
"jquery": "*"
}
}
as shown in https://github.com/twitter/bower/pull/94 but it doesn't work.
转载于:https://stackoverflow.com/questions/14079833/how-to-change-bowers-default-components-folder