Library name: Modaal
Repository url: https://github.com/humaan/Modaal
npm package url: modaal
License: MIT
Official homepage: https://humaan.com/modaal/
Something you might want to know about CDNJS
CDNJS provides a CDN containing front-end libraries to allow all the web developers from around the world to use the libraries on our free CDN without any additional download/upload process.
How to deal with this issue?
You can choose to add the library via single package.json or with its required assets. As for the working environment, you can choose to work on the GitHub GUI or on your computer (locally).
Working locally will let you learn git (version control) and debug skills. However, it needs more spaces on your computer in comparison with using GitHub. So don't feel any pressure if you want to use the GitHub GUI. If you decide to work locally, it's recommend to pulling cdnjs repository with sparseCheckout: https://github.com/cdnjs/cdnjs/blob/master/documents/sparseCheckout.md because the cdnjs repo is too huge.
The followings are the useful steps to let you add the requested library with the GitHub GUI in an easier way. 💪
Via single package.json
- Fork the cdnjs repo and do the following steps on your forked repo.
- Create a new, non-master branch by clicking the "Branch: master" dropdown and enter the name of the library being added.
- Create the file
<lib_name>/package.json under ajax/libs directory by clicking "Create new file" button. You will see the part of the screen like this image 
Find the package.json (or bower.json if there is no package.json) in source repo (including npm). Please copy its content and modify the content if the content doesn't match the format of package.json in cdnjs. There are 9 fields we may need in total here. Other than these fields, please remove them.
-
Necessary ones: name, filename, description, keywords, repository, author, license and "npm auto-update" (or "git auto-update")
name: library name, please use the GitHub repo name if the source is GitHub, please use npm package name if the source is npm.
filename: Find the main file of this library, you might be able to find it after reading its documentation. If the main file is not minified, please still use <filename>.min.js or <filename>.min.css structure naming, we'll do the minify job.
author: There might be more than one author. Please use authors instead when there are multiple authors.
license: There also might be more than one license. Please use licenses when there are multiple licenses.
- npm auto-update or git auto-update: Please follow https://github.com/cdnjs/cdnjs/blob/master/documents/autoupdate.md. There are a few rules to help you choose GitHub or npm to be the source. The simplest rule you can use here is to choose the one with more versions. If the number of versions are the same, please use npm because we prefer it.
-
Unnecessary: homepage if it's the same as the source repo or just a demo page with no link to its source repo.
Last, please use JSONLint to validate your package.json.
- Commit new file:
- The heading of the commit message
- If the source is git:
Add <lib_name> w/ git auto-update via single package.json
- If the source is npm:
Add <lib_name> w/ npm auto-update via single package.json
- The body of the commit message:
close #<issue_number>, cc @<lib_author>
- Submit the pull request in cdnjs repo and fill out the asked information to make sure that everything you can do is good.
Example 1, Example 2, Official document
With library assets
- The same as the step 1 in the method "via single package.json".
- The same as the step 2 in the method "via single package.json".
- Similar to the the method "via single package.json". But here we need the other necessary field:
version which is the latest stable version. And please create package.json locally and upload it with step 4. Also, don't forget to use JSONLint to validate your package.json.
- Every library should be stored under the
ajax/libs directory. It has its own sub-directory of ajax/libs and each version of the library has its own sub-directory of the library directory name, for example: /ajax/libs/jquery/3.2.1/. Find the files from the latest stable version this library needs to run on a browser well (which are also the files you list in files field of auto-update config in package.json) and upload them according to their versions. Note every file should be the completely the same as every file in the upstream. Make everything is alright with the command npm test if you work locally.
- Commit the files:
- The heading of the commit message:
- If the source is git:
Add <lib_name> w/ git auto-update
- If the source is npm:
Add <lib_name> w/ npm auto-update
- The body of the commit message:
close #<issue_number>, cc @<lib_author>
- The same as the step 5 in the method "via single package.json".
Example, Official document
Work locally
Some useful commands:
- Pull the repo from cdnjs repo
- Create a non-master branch from master branch.
git checkout -b <lib_name>
- Commit the files, with
-v you can see more detailed information
- Revise your last commit message
- Push to GitHub, add
-f if you want to update your remote branch.
git push <remote_name_you_name_for_your_forked_cdnjs_repo> <branch_name> [-f]
Feel free to ask some questions if you have any, we will help you as soon as possible. Now don't hesitate to become a contributor of CDNJS 😄
References
For more details you can try to refer our contributing document or the contributing document from GitHub
Library name: Modaal
Repository url: https://github.com/humaan/Modaal
npm package url: modaal
License: MIT
Official homepage: https://humaan.com/modaal/
Something you might want to know about CDNJS
CDNJS provides a CDN containing front-end libraries to allow all the web developers from around the world to use the libraries on our free CDN without any additional download/upload process.
How to deal with this issue?
You can choose to add the library via single package.json or with its required assets. As for the working environment, you can choose to work on the GitHub GUI or on your computer (locally).
Working locally will let you learn git (version control) and debug skills. However, it needs more spaces on your computer in comparison with using GitHub. So don't feel any pressure if you want to use the GitHub GUI. If you decide to work locally, it's recommend to pulling cdnjs repository with sparseCheckout: https://github.com/cdnjs/cdnjs/blob/master/documents/sparseCheckout.md because the cdnjs repo is too huge.
The followings are the useful steps to let you add the requested library with the GitHub GUI in an easier way. 💪
Via single package.json
<lib_name>/package.jsonunderajax/libsdirectory by clicking "Create new file" button. You will see the part of the screen like this imageFind the package.json (or bower.json if there is no package.json) in source repo (including npm). Please copy its content and modify the content if the content doesn't match the format of package.json in cdnjs. There are 9 fields we may need in total here. Other than these fields, please remove them.
Necessary ones:
name,filename,description,keywords,repository,author,licenseand "npm auto-update" (or "git auto-update")name: library name, please use the GitHub repo name if the source is GitHub, please use npm package name if the source is npm.filename: Find the main file of this library, you might be able to find it after reading its documentation. If the main file is not minified, please still use<filename>.min.jsor<filename>.min.cssstructure naming, we'll do the minify job.author: There might be more than one author. Please useauthorsinstead when there are multiple authors.license: There also might be more than one license. Please uselicenseswhen there are multiple licenses.Unnecessary:
homepageif it's the same as the source repo or just a demo page with no link to its source repo.Last, please use JSONLint to validate your package.json.
Add <lib_name> w/ git auto-update via single package.jsonAdd <lib_name> w/ npm auto-update via single package.jsonclose #<issue_number>, cc @<lib_author>Example 1, Example 2, Official document
With library assets
versionwhich is the latest stable version. And please create package.json locally and upload it with step 4. Also, don't forget to use JSONLint to validate your package.json.ajax/libsdirectory. It has its own sub-directory ofajax/libsand each version of the library has its own sub-directory of the library directory name, for example:/ajax/libs/jquery/3.2.1/. Find the files from the latest stable version this library needs to run on a browser well (which are also the files you list infilesfield of auto-update config in package.json) and upload them according to their versions. Note every file should be the completely the same as every file in the upstream. Make everything is alright with the commandnpm testif you work locally.Add <lib_name> w/ git auto-updateAdd <lib_name> w/ npm auto-updateclose #<issue_number>, cc @<lib_author>Example, Official document
Work locally
Some useful commands:
-vyou can see more detailed information-fif you want to update your remote branch.Feel free to ask some questions if you have any, we will help you as soon as possible. Now don't hesitate to become a contributor of CDNJS 😄
References
For more details you can try to refer our contributing document or the contributing document from GitHub