longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Please add composer support #476

Closed tshadrin closed 4 years ago

tshadrin commented 5 years ago

Please add composer.json file to composer support. Thanks.

monovertex commented 5 years ago

I'm not sure I follow. Composer is intended for PHP dependencies. NPM or Yarn should be the tools used to manage JavaScript dependencies (we have an issue with the NPM config right now, but it will be resolved).

Is this a standard flow, adding JS dependencies through Composer? I'm asking because usually JS plugins don't have a composer.json file, but rather the package.json file. Could you show me an example?

holtkamp commented 5 years ago

This plugin can be used: https://packagist.org/packages/fxp/composer-asset-plugin

monovertex commented 4 years ago

Closing because of no activity and because there are ready to use solutions without needing to register this library as a Composer package (and I don't feel that it would be one anyway - one should use Yarn or NPM to manage JavaScript packages anyway).

BUT! Note that this -- adding front-end libraries to a browser-based application -- is really the only use case for which Asset Packagist is appropriate. If you're writing a JavaScript app for Node, you should use NPM or Yarn, not Composer! Asset Packagist isn't meant to replace NPM or Bower, and it doesn't necessarily resolve dependencies the same way they do. So use this power wisely and well. ~ https://lightning.acquia.com/blog/round-your-front-end-javascript-libraries-composer