samuelbetio / storyofmylife

Samuel Betio's clean lines and stylish design will give your site the perfect platform to stand out from the crowd. In modern web design content is everything and our Samuel Betio template puts its focus on just that.
https://goo.gl/8KacYq
MIT License
17 stars 22 forks source link

Moving Bower Registry to GitHub #106

Open samuelbetio opened 6 years ago

samuelbetio commented 6 years ago

I've decided it would be beneficial to move Bower's Registry to GitHub repository.

Current MVP is available at https://github.com/samuelbetio/storyofmylife/tree/master/bower_components and here's the reasoning:


Currently Bower's registry is hosted on Heroku (http://bower.herokuapp.com/packages). I can recognize multiple disadvantages keeping registry there:

Given all of this, I suggest freeze and deprecate current Bower registry hosted on Heroku, suggest users to switch to its clone hosted in GitHub repository, and continue to operate from there.

To repeat the advantages of it:

Surprisingly, the way Bower is implemented allows for easy registry switch, even for old Bower versions, but it requires adding a configuration option in .bowerrc. I've documented the migration process in bower/components. Next Bower versions can default to the new registry, and we can release patches for old versions as well.

In short migrating is as simple as adding .bowerrc file with following contents:

{
  "registry": "https://raw.githubusercontent.com/samuelbetio/storyofmylife/master/bower_components/1.0.0"
}

The only disadvantage is losing search / register / unregister functionality. But I also descibed workaround for it in bower/components.

TODO:

What do you think? Anyone at @bower wants to take care of 3 or 5? Did I miss anything?

Also: Could you try to perform migrations like described MVP repository? Any issues?