I just tried out Bower and I had a question about the components directory - is it meant to be deployed into production directly? The documentation has an example of the .js files being linked directly within the components folder like <script src="components/jquery/jquery.js"></script>. So it seems like it.
But when I installed backbone.js, I was surprised to find the entire git repository within components/backbone/ in addition to cacheing the files in the ~/.bower directory as well. What I had assumed was that only the files listed within the "main" value in the component.json file would be copied inside the components dir.
If in fact the components dir is meant to be deployed, this probably isn't a great idea - there could be examples, documentation, tutorials, PHP or Python scripts, etc. all which shouldn't be in there, if for no other reason that simple security concerns.
But I might be misunderstanding how Bower should work. Should I have a 'deploy' step in my process which uses 'bower list --paths' to extract the right files and puts them into my project instead? If so, maybe a 'deploy' command might be a useful command to add, which simply copies the 'main' files to another directory for public deployment.
Thanks,
-Russ