jmdobry / angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.
http://jmdobry.github.io/angular-cache
MIT License
1.39k stars 156 forks source link

Using Bower to install this package, the dist filenames change per version? #63

Closed klebba closed 10 years ago

klebba commented 11 years ago

You should remove the rev from the filenames in the dist directory, so your user's build scripts can rely on a consistent file name. See https://github.com/angular/bower-angular

Thanks for a great utility!

jmdobry commented 11 years ago

Yes, this is standard.

This question has been raised before. See #40.

Quick answer: Use src/angular-cache.js instead, which is listed in bower.json as "main": "./src/angular-cache.js", The dist/ folder is for those who don't use Bower. Relying on src/angular-cache.js should solve your inconsistent filename problem!

:smile:

jmdobry commented 11 years ago

@klebba And thanks for the compliment!

klebba commented 11 years ago

I'm actually interested in using your minified version with Bower, so I want the dist. In my experience the version number is not present in any Bower package I have installed. For what it's worth, this includes angular, bootstrap, lodash, moment, jquery, select2, and ace. If I had to increment the version number for each of these libraries in my Gruntfile build step as they evolved it would be very tedious to keep up!

jmdobry commented 11 years ago

Understandable, and I agree. I assumed src/angular-cache.js would satisfy everyone who uses Bower–there isn't anything special about how I minified the file.

klebba commented 10 years ago

Thanks!