blittle/bower-installer — pull request #39 by mculp (2013-11-19 21:48:22+00:00)
Title: relativeComponentPath from .bowerrc

I'm not sure if there's a better way to do this. Since each 'dep' gets prefixed with 'component' in its filename, I am doing a string replace on 'component' from the `directory` key in .bowerrc

Is there a cleaner way to solve this?

Another item of note -- this only affects unspecified sources. For example, since the full component path is already specified for jquery and chosen, only bootstrap will be affected in the config below.

```json
{
"directory": "vendor/assets/component"
}
```

```json
{
"name": "",
"version": "0.1.0",
"dependencies": {
"chosen": "https://github.com/koenpunt/chosen/releases/download/v0.11.1/chosen.zip",
"jquery-ui": "~> 1.8.0",
"bootstrap": "~> 2.3.2",
},
"install": {
"path": {
"js": "vendor/assets/javascripts",
"css": "vendor/assets/stylesheets",
"png": "vendor/assets/images"
},
"sources" : {
"chosen": [
"vendor/assets/components/chosen/chosen.jquery.js",
"vendor/assets/components/chosen/chosen.css",
"vendor/assets/components/chosen/chosen-sprite.png",
"vendor/assets/components/chosen/chosen-sprite@2x.png"
],
"jquery-ui": [
"vendor/assets/components/jquery-ui/jquery-ui.js",
"vendor/assets/components/jquery-ui/themes/start/jquery-ui.css",
"vendor/assets/components/jquery-ui/themes/start/images/ui-bg_flat_55_999999_40x100.png"
]
}
}
}
```

this solves blittle/bower-installer#38