If you’d like to contribute a feature or bug fix, you can fork Riot, 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.
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
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.
Please just add a link to the bottom of the README.md file