cookiesjsr
cookiesjsr copied to clipboard
Provide as npm package
Hi Joachim,
it would be cool to have this as npm package. Besides general benefits it would also be helpful to simply download the library with composer through asset-packagist:
composer require npm-asset/cookiesjsr
Name should be equal so that it's automatically downloaded into the correct library subfolder in Drupal.
What do you think?
The alternative (if you uncheck) is to download the library and place it in the library folder, so library file can be reached e.g. under path: {docroot}/libraries/cookiesjsr/dist/cookiesjsr.min.js.
Also see https://docs.github.com/en/actions/guides/publishing-nodejs-packages for automation :)
Just saw this has a composer package, which is absolutely enough for the case above. But would still be helpful for non-php cases?
https://docs.npmjs.com/creating-and-publishing-unscoped-public-packages
npm publish