photopea / UPNG.js

Fast and advanced PNG (APNG) decoder and encoder (lossy / lossless)
MIT License
2.1k stars 259 forks source link

Init NPM package, add module bundler #2

Closed erykpiast closed 7 years ago

erykpiast commented 7 years ago

See contribution notes in README to get know how to work with it and how to publish initial version of the package (I really wish you to do it as you're the owner).

photopea commented 7 years ago

I want my library to work when you insert it with

I don't want it to require going through any "preprocessors".

Do you really want to use my library through this NPM, or you just want to make the NPM catalogue bigger?

erykpiast commented 7 years ago

It will work, result of bundling is regular JavaScript file that you can use through NPM, bower, CDN or by putting it to your repository.

I don't need this library (at least right now), I don't take care about NPM size neither. I find the library interesting and I want to help you with making it available for people, as you don't know how to do it and you requested some help (or I understood it like that).

photopea commented 7 years ago

Thanks. I would be rather, if you keep this in your own repository for people, who need to access it this way.

Since I am not familiar with all these programs (npm, bower, yarn etc.), I feel uncomfortable adding new configuration files to my project. I am also afraid, that in five years peope will use completely different tools and I would have to update it just because of that.

I am sure, that when sobembody wants to use my library, he or she will find a way and it will not be a problem, that it will take two minutes instead of two seconds.