最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How do I upload to cdnjs? - Stack Overflow

programmeradmin2浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 22

You 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.

发布评论

评论列表(0)

  1. 暂无评论