jfeltkamp / cookiesjsr

Easily expandable cookie consent tool.
Other
22 stars 5 forks source link

Provide as npm package #5

Open JPustkuchen opened 3 years ago

JPustkuchen commented 3 years ago

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.

JPustkuchen commented 3 years ago

Also see https://docs.github.com/en/actions/guides/publishing-nodejs-packages for automation :)

JPustkuchen commented 3 years ago

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