microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.25k stars 126 forks source link

Which files need to be hosted? #24

Closed kaocy closed 6 years ago

kaocy commented 7 years ago

Hi @rbuckton , I am a member of cdnjs. We want to host this library. I am not sure which files need to be hosted, and I guess tslib.js should be hosted.

Could you please confirm if there is any other file need to be added in cdnjs? Thank you!

https://github.com/cdnjs/cdnjs/issues/10128

DanielRosenwasser commented 7 years ago

Hi there @lcd78706! Sorry for the long turnaround time. Yes, tslib.js would be the appropriate file. At this moment in time, there are no other files I can think of.

Out of curiosity, is there a great way of figuring out how popular a cdnjs package is?

kaocy commented 7 years ago

@DanielRosenwasser

Thanks for your reply! There is a reference below that you can see the popularity of cdnjs. https://w3techs.com/technologies/overview/content_delivery/all

By the way, could you please also help me solve Microsoft/tslib#23?

DanielRosenwasser commented 7 years ago

Ah, to clarify, I don't mean to doubt the usage of cdnjs. What I'd really like is to get an idea of usage numbers of tslib or similar packages through cdnjs. I don't suppose there's a way to find out at this time, is there?

kaocy commented 7 years ago

Sorry, but for now there isn't an efficient way.

Jessidhia commented 7 years ago

tslint.es6.js can also be hosted, but right now the only browser that can even in theory make use of it is Safari Technology Preview.

I am not sure if TypeScript is yet capable of generating code that would be able to import it off a URL either.

kaocy commented 7 years ago

Hi, @Kovensky We cannot minify es6 files because there will be some errors, so I want to discuss with you if you can provide minified file for tslint.es6.js.

sufuf3 commented 7 years ago

Hi @DanielRosenwasser @mhegazy @aluanhaddad I'm a member of CDNJS. We are going to host this library. Would you provide the minified file for tslint.es6.js? This is really helpful to us and web front-end developer to use this lib.

If you have any suggestion, please let me know. Thank you.

DanielRosenwasser commented 7 years ago

Hi @sufuf3, is there a reason why cdnjs can't minify the file on its own? I'm sure there will be other ES2015 files coming as well.

sufuf3 commented 7 years ago

@DanielRosenwasser I discuss with the owner of CDNJS and he updated the minified tool, so it seems can work. I'll work on it.

Thank you.