Can I add a git repository to my bower.json?

jhamm picture jhamm · Nov 25, 2013 · Viewed 28.9k times · Source

I have a very small repo in which I do all dev work in the master branch and use tags as "stable" points in history.

I guess by default Bower seems to fetch the latest tagged version of a repo. I'm trying to get the most recent commit in the master branch.

I've tried running all these, in every conceivable order:

bower cache-clean mypackage
bower install mypackage --force-latest
bower install mypackage --force --force-latest
bower install mypackage --force

I've also tried adding latest to my bower.json file:

"dependencies": {
  "mypackage": "latest"
}

And then running:

bower update mypackage

No matter what it seems to always get the latest tagged state.

How do I get the latest, most up-to-date, untagged state of the project?

Answer