All contributions are welcome!
If you get stuck with this library you can search or ask in the project issues or in StackOverflow.
Describe your problem or questions in detail and follow the steps mentioned in the "Issues" section of this document.
- Search for existing issues before creating a new one, to avoid duplication.
- Give the issue a proper title. Use prefixes like
[feature request]
,[suggestion]
or[question]
in front of the title when it is not related to a possible bug. - When the issue is related to a possible bug, please always fill the suggested template where applicable.
- It is mandatory to provide live examples using JSFiddle when applicable, that's the quickest and most efficient way for everyone to help you.
Pull Requests fixing existing issues are really appreciated, but you can also add a new features. If your new feature works and receives the approval of the community, it will be merged.
-
Your working environment will need
node
v10.x withnpm
,gulp
andava
. -
After a fresh clone for your fork, you need to run
npm install
inside the project's root folder. -
Before committing your changes to Github you have to assure that the tests are green and the build is successful.
- Run the build process and make sure it doesn't produce any error:
npm run build
. - Run all tests and the linter:
npm run test
. - Check the documentation:
npm start
and go to http://localhost:8080/.
- Run the build process and make sure it doesn't produce any error:
-
Respect the coding style of the project, do not change it if not necessary.
-
Test your code changes at least in Chrome and Firefox. Preferably it should also be tested in mobile browsers and Edge.
-
If possible, cover all your changes with unit tests.
-
New features and new options should come with the corresponding documentation and demo.
-
When creating a new Pull Request of your branch to the original repository, please fill the suggested template where applicable.
To contribute with the documentation, you only need to update the JSDoc comments of the src/js
code
and the examples in the src/hbs
folder.
After that and after the documentation changes have been merged into master, the project maintainers
can run npm run publish-docs
to update the gh-pages
branch and the documentation website.
Please respect the Code of Conduct.
Thanks for reading and following this document.