cookiesjsr icon indicating copy to clipboard operation
cookiesjsr copied to clipboard

Provide as npm package

Open JPustkuchen opened this issue 3 years ago • 2 comments

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 avatar Apr 12 '21 14:04 JPustkuchen

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

JPustkuchen avatar Apr 12 '21 14:04 JPustkuchen

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

JPustkuchen avatar Jun 17 '21 06:06 JPustkuchen