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 installto install all dependencies. - Run
npm run test-devto run unit tests automatically when you change a file. - Run
npm run apigento 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
masterbranch directly. - Add failing tests for the change you want to make while
npm run test-devis 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.