Shorthand github urls #121

Closed
sindresorhus opened this Issue Nov 3, 2012 · 8 comments

Projects

None yet

4 participants

@sindresorhus
Bower member

NPM just got support for this: npm/npm@bfcd368

I think it would be useful in Bower too.

So instead of doing this: bower install git://github.com/maccman/package-jquery.git, you can already to this bower install git://github.com/maccman/package-jquery, since GitHub redirect to the .git, but would be handy to be able to do this: bower install maccman/package-jquery.

@addyosmani
Bower member

👍

@satazor
Bower member

Sounds good

@satazor satazor closed this in 2948eae Nov 11, 2012
@satazor
Bower member

Done, also added support for username/project#tag

@addyosmani
Bower member

Nice work @satazor :)

@sindresorhus
Bower member

\o/

@satazor
Bower member

Thanks @addyosmani

@necolas
Bower member

Someone needs to update the docs to reflect this change.

FWIW, I think this is a bit of a confusing change to the project and could have benefitted from more discussion. What this effectively does is create a parallel registry - GitHub.

@sindresorhus
Bower member

There is docs for it: https://github.com/twitter/bower#usage

Why is it confusing? You could already install directly from a git repo. This is just a shorthand for GitHub repos, since that's where most packages are anyway, though there is no lock in to GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment