eligrey / Blob.js

An HTML5 Blob implementation
Other
1.15k stars 605 forks source link

Bower compatibility #39

Closed rpavlik closed 9 years ago

rpavlik commented 9 years ago

I think this is basically the same issue as https://github.com/eligrey/FileSaver.js/issues/127 - adding a bower.json file would make this easier to use.

laurafg commented 9 years ago

+1!!

nandilugio commented 9 years ago

+1

This is also related: https://github.com/eligrey/FileSaver.js/pull/109

The thing is that bower requires the use of semantic versioning. Maybe "2014.11.29" could be a solution that satisfies all?

eligrey commented 9 years ago

@nandinga https://twitter.com/sephr/status/542978804441169920 and https://twitter.com/sephr/status/542980376613113856

nandilugio commented 9 years ago

Sounds fair. If I add the bower.json file and PR, will you integrate?

eligrey commented 9 years ago

No, but maintaining a bower.json file is not very difficult. You will have to periodically update a downstream fork to be in sync. This repo is for source code collaboration, not syndication with the plethora of package managers and CDNs. If I wanted to support a package manager or CDN I might as well add all of them, as I have no preference over bower/npm/etc.

bjornstar commented 9 years ago

36 and #32 have been sitting there for quite some time.

I've published blob-polyfill v1.0.20150320 from my fork on bower and npm. I have no problems maintaining packages, feel free to send me PRs.

I also incorporated #37 in my release.

I purposely left Blob.js available if you want that namespace. @eligrey, if you object to anything that I've done here, please get in touch with me.

eligrey commented 9 years ago

You are free to name it Blob.js if you want. Also thanks I didn't notice #37. I merged it mainstream as well.

eligrey commented 9 years ago

http://bower.io/search/?q=blob-polyfill and https://www.npmjs.com/package/blob-polyfill are the official bower and npm repos.