webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 422 forks source link

Add ViewerJS to packagist.org #157

Open marclaporte opened 8 years ago

marclaporte commented 8 years ago

A composer.json file is needed.

Please see: https://packagist.org/about

Thanks!

kossebau commented 8 years ago

Hi Marc. We gladly would like to add a composer.json file, especially as we have a special release repo of ViewerJS for dependency/package managers here: https://github.com/kogmbh/ViewerJS_release.

Just, there is still the problem that Packagist has no proper support for frontend-only packages. At least last time I checked there is no standard value that could be used for the type entry in the composer.json. Looking around it seemed that 3rd-party https://github.com/RobLoach/component-installer is quite popular for frontend-only things with Composer. But noone ever could confirm that this extra dependency is spread enough. So until someone can tell us how JavaScript-only packages (so no PHP included) can be supported with Packagist, there is nothing we can do here.

marclaporte commented 8 years ago

ok, let's keep this open until we get more info. Thanks!

marclaporte commented 8 years ago

Related: https://github.com/SimilisTools/mediawiki-DocViewer https://packagist.org/packages/mediawiki/doc-viewer

marclaporte commented 8 years ago

Related: https://github.com/wahyugnc/yii2-pdfjs