Closed Theolodewijk closed 4 years ago
I like do use composer to download this an get updates
We don't currently support composer as a package manager - sorry. Currently npm is our main one and we are planning to add Nuget support in future.
whay not composer ?
can you also simply download updates with npm and have conjob updated and if there is a new version from behind the public folder to public volder copy?
We've not had many requests for composer support, so it hasn't been a priority for us I'm afraid (also we don't use it ourselves).
We'd welcome a pull request to all our distribution repos if it is something you would be willing to support:
Allan
On a CentOS 8 server with Directadmin and Nginx npm and bower wil not work.
A pity that you limit the use of Datatables to yourself and that everyone has to download it manually every time to stay up to date!
Its not limited at all. Its open source under the MIT license. We haven't made it available via composer - but we might in future, or as I say, we would take pull requests to add support for that one specific package manager.
it is limited if you cannot simply update easily where milienen systems use composer to perform such updates and I have to do everything to be able to perform such updates automatically.
For users who want use composer I have a workaround use composer and git
composer.json
{ "require": { "datatables/datatables": "^1.10" }, "scripts": { "post-update-cmd": [ "rm -rf public_html/DataTables/latest", "cp -R vendor/datatables/datatables/media/ public_html/DataTables/latest", "rm -rf git/Dist-DataTables-Buttons", "rm -rf public_html/Dist-DataTables-Buttons/latest/js/", "git clone https://github.com/DataTables/Dist-DataTables-Buttons git/Dist-DataTables-Buttons", "cp -R git/Dist-DataTables-Buttons/js/ public_html/Dist-DataTables-Buttons/latest/js" ] } }
Thanks for the quick replay Allen
Thanks for posting that!
composer require datatables/buttons
[InvalidArgumentException] Could not find a matching version of package datatables/buttons. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).