LibraryManager icon indicating copy to clipboard operation
LibraryManager copied to clipboard

Discussion: Extensibility - Who wants to extend LibMan?

Open justcla opened this issue 7 years ago • 3 comments

Would you like to extend LibMan for your own purposes? If so, what are your needs?

Do you want to create a new provider for serving library files? If so:

  • Which provider/s are you looking to create?
  • What kind of properties would your provider need?

More generally, what are you looking for in an extensibility model?

justcla avatar Apr 26 '18 23:04 justcla

In my case, I am interested in the ability to add git repository as a provider. There are several useful libraries that are not available on cdnjs but in GitHub repository.

xzegga avatar May 20 '18 02:05 xzegga

I echo what @xzegga suggested about a git repo provider. However, there is a work-around for this via jsdelivr. See https://www.jsdelivr.com/features#gh

For example, WET-BOEW is not available on any provider:

{
  "version": "1.0",
  "defaultProvider": "jsdelivr",
  "libraries": [
    {
      "library": "wet-boew/[email protected]",
      "destination": "wwwroot/lib/wet-boew/dist/themes-gc-intranet"
    },
    {
      "library": "wet-boew/[email protected]",
      "destination": "wwwroot/lib/wet-boew/dist/wet-boew/"
    }
  ]
}

I think the same format, but replacing "jsdelivr" with "github", could be the way to go.

EDIT: Reference https://github.com/aspnet/LibraryManager/issues/67#issuecomment-387953524

RobJohnston avatar Feb 02 '20 01:02 RobJohnston

How can wet-boew not be available on any provider? How do they expect us to use it, then? I can testify that it's not available via jsdelivr (not consistently, anyway).

pabrams avatar Sep 03 '20 18:09 pabrams