If you’d like to contribute a feature or bug fix, you can fork Riot or one of its submodules, commit your changes, & send a pull request. Please make sure to search the issue tracker first.
master
is considered safe and should be identical to the last release tag. When submitting pull requests please use the dev
branch.
Please follow the coding style established in the rest of the codebase.
Semicolons
No semicolons, please!
Spacing
Use two spaces for indentation. No tabs.
Spacing around brackets: if (foo) {
instead of if(foo){
Quotes
Single-quoted strings are preferred to double-quoted strings.
Equality Checking
Prefer ==
over ===
unless it's a must.
Bitwise Operations
Prefer classic conditionals i < 0
over bitwise operators !~pos
Create a test for your specific contribution and submit it with your pull request to ensure the future stability of Riotjs
Before any pull request please run the following command from your terminal to be sure your changes will not break Riotjs:
$ make riot
We use Github Issues as the Riot.js bug tracker. The best way to get your bug fixed is to provide a reduced test case. jsFiddle, jsBin, and other sites provide a way to give live examples.
- Bug Report Template on plnkr (preferred)
- Bug Report Template on jsFiddle
Please just add a link to the bottom of the README.md file
Please go to the website repository.