I really welcome contributions! Please feel free to fork and issue pull requests when...
For IE problems, please refer to IE Support.
First of all, thank you in advance for your contribution!
This document will introduce something you should know before making some contributions to perfect-scrollbar. I'll try to explain as easy as possible. If there are something missed or not well-documented, please let me know.
Also, the project is not actively maintained. No maintainer is paid, and most of us are busy on our professional or personal works. Please understand that it may take a while for an issue to be resolved. Uploading a PR would be the fastest way to fix an issue.
Please don't edit files in the dist
directory as they should only be
updated on releases. You'll find source code in the src
directory.
Files concerning CSS is placed in the css
directory.
examples
directory is for the example sources. If you have any example you
want to add with a new feature, please add it in the directory.
docs
is for GitHub Pages.
First, ensure that you have stable Node.js and npm 5 installed.
After basic installation, follow the steps below.
npm install
to install all dev dependencies.npm test
to check if everything's well.Assuming that you don't see any error, you're ready to go.
Prettier is used for code
formatting. Please npm run format
before each commit.
You can use the npm run build
command to build source files into output files.
master
branch is okay, but not
recommended.npm test
to see if the code fit into the code convention and build
without an error. Repeat steps 2-3 until done.For further information about pull requests, please refer to GitHub's Using Pull Requests.
When the pull request is created, anyone can review the source code. After the review is finished and the patch doesn't have any problem, it'll be merged.
The process looks somewhat difficult, but it's necessary to avoid maintanance issues and make the code easy to read and use.
If there is any opinion or question, please feel free to ask me.