Specifying latest revision of a particular branch with bower

Chad picture Chad · Apr 2, 2013 · Viewed 36.6k times · Source

I want to specify the latest revision of a particular branch as a dependency. Specifically, I'd like to use Bootstrap v3.0 before it is released.

What is the best way to specify that as a dependency in bower?

Answer

user1429980 picture user1429980 · Dec 29, 2013

You need to use the #, appended to the component name:

bower install bootstrap#version3-branch-name

And as you might expect, if you add --save-dev to that, then it will add to your bower.json file:

"bootstrap": "version3-branch-name"