Regarding code style like indentation and whitespace, follow the conventions you see used in the source already.
First, ensure that you have Node.js and npm installed. You also need PHP 5 with php.exe in the $PATH.
- Fork and clone the repo.
- Run
npm install
to install all dependencies. - Run
npm run test-dev
to run unit tests automatically when you change a file. - Run
npm run apigen
to generate documentation.
Assuming that you don't see any red, you're ready to go. Just be sure to run npm run test
after making any changes, to ensure that nothing is broken.
- Create a new branch, please don't work in your
master
branch directly. - Add failing tests for the change you want to make while
npm run test-dev
is running. - Fix stuff.
- See if the tests pass. Repeat steps 2-4 until done.
- Update the documentation to reflect any changes.
- Push to your fork and submit a pull request.