How do I upload to cdnjs? I have no clue and no experience with git.
I have a file that I want to upload to cdnjs. Do I have to download something. Can someone walk me through what I have to do?
How do I upload to cdnjs? I have no clue and no experience with git.
I have a file that I want to upload to cdnjs. Do I have to download something. Can someone walk me through what I have to do?
Share Improve this question edited Jan 3, 2020 at 20:23 TylerH 21.1k77 gold badges79 silver badges112 bronze badges asked Jul 8, 2017 at 0:36 Nabil HayekNabil Hayek 1653 silver badges9 bronze badges1 Answer
Reset to default 22You can't just upload a single file to cdnjs — you need to have a production version of JavaScript or CSS library that meets their policy, rules and guidelines, like:
- For NPM packages, the base level for popularity is 800 downloads per month
- For GitHub repositories the requirement is normally 200 stars
But if your library is popular enough, you can easily add it to CDNJS by forking cdnjs/packages
on GitHub and opening a pull request.
For further details, check out the CDNJS contributing document.