harm-less / angular-ui-router-css

UI Router (1.*) extension to load route-specific, promised based CSS files
http://harm-less.github.io/angular-ui-router-css
0 stars 1 forks source link

Installation options (switching to npm/yarn entirely) #1

Open slavafomin opened 7 years ago

slavafomin commented 7 years ago

Hello!

In the documentation you recommend to use bower for installation, but I would suggest to use npm or even better yarn instead. I think there is no use for different package managers in the future and npm ecosystem is great and yarn really add missing features to npm and makes it really fast. I'm using yarn for all my current projects and I think it's time to deprecate bower. Also, manual installation option shouldn't be really mentioned, cause it's a counterproductive practice.

harm-less commented 7 years ago

Hey, So I might be speaking what nowadays is a somewhat unpopular opinion as I more more often hear opinion like yours, but I think Bower still offers something. Or in other words, I've haven't yet run into big issues. It's true that it's yet another package manager to support and it seems to be more and more true that many packages are also becoming available in npm. But it does look like Bower is fighting a losing battle. So maybe it's time for me to move on too. Actually while I was scouting the web a bit I noticed this comparison page which actually had a scary CON for Bower as the bottom of the page: CON Deprecated. What!

Well, as of this month this is the case as they mention it on their website no less: https://bower.io/ ...psst! While Bower is maintained, we recommend yarn and webpack for new front-end projects!

So I guess I'll need to consider migrating that too.... So much to migrate... Haha. One of the reasons I loved Bower was using it combination with Wiredep, so hopefully there's an npm or Yarn equivalent.

Anyway, thanks for bringing it to my attention, seems like something with a lot of potential.

I already can very easily support Bower in this repo as with a 'grunt release' command I update package.json, bower.json, build the project and I register a new release on Github. So that I can advice to you in case you didn't know this ;)

About the manual installation. I just mentioned it because I know many people still don't master the package managers (I certainly didn't a few years back).