Question about Bower

Hi,

I’m taking the step from Codekit to grunt and using bower. It’s going decent but im scratching my head a bit regarding Bower.

Lets say I want to install Flexslider… so i run “bower install flexslider” and it is installed in the bower_components directory. However when I do this I get sooo much junk, when most often I just want a single file… in this example flexslider.js . How do you “deal” with this? Do you manually remove the junk?

And another thing, when loading an installed script do you just “bower_components/flexslider/libs/flexslider.js”, for example? Seems dumb when you are used to having all plugins/script in the root of a js/ folder.

Bower is just an interface to GitHub, basically (or at least that’s how I use it).
I use it to pull stuff down from there into a project-specifc bower_components folder (as you describe).
From there however, I copy over any files I need to the appropriate directory of my project. E.g. I would copy bower_components/flexslider/libs/flexslider.js to /js/flexslider.js

1 Like

Okey, if that is how the Pullo is using it, so will I:P

1 Like

Lol.

Mine isn’t the definitive answer, mind.
If anyone else is doing anything different, I’d be glad to hear it (I don’t use Bower as much as other tools like Grunt).

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.