jspm / project

Roadmap and management repo for the jspm project
159 stars 8 forks source link

Can the CDN support non-NPM registries? #290

Open zachsa opened 10 months ago

zachsa commented 10 months ago

I understand that the CDN basically tracks NPM to transpile all published packages to be in a suitable module format made available via the CDN - let me know if this is not correct.

I would like to publish an NPM package to the GitHub registry, that I can then consume via the JSPM CDN. Is this possible? It would be cool if there was a UI where I could 'register' a package that I would like to consume via the JSPM CDN.

trusktr commented 9 months ago

Yeah, being able to make an account, then register some static file location for some package (f.e. a git repo), could be an interesting idea. It would allow people to publish packages in form of ES modules from anywhere. It would be similar to how Deno currently supports GitHub repos (I don't know if it supports others).