If you are thinking about making Karma better, or you just want to hack on it, that’s great! Here are some tips on how to set up a Karma workspace and how to send a good pull request.
$ git clone git@github.com:<your-username>/karma.git
$ cd karma
$ ./scripts/init-dev-env.js
Run the tests via:
$ grunt test:unit
$ grunt test:e2e
$ grunt test:client
# All tests.
$ grunt test
Lint the code via:
$ grunt lint
Build the client code via:
$ grunt build
The default task, just calling grunt
will run build lint test
.
Checkout a new branch and name it accordingly to what you intend to do:
feature-
.fix-
.docs-
.$ git checkout -b <branch_name>
Open your favorite editor, make some changes, run the tests, change the code, run the tests, change the code, run the tests, etc.
$ git commit -m "..."
$ git push origin <branch_name>
After sending a pull request, other developers will review and discuss your change. Please address all the comments. Once everything is all right, one of the maintainers will merge your changes in.
Please sign our Contributor License Agreement (CLA) before sending pull requests. For any code changes to be accepted, the CLA must be signed. It's a quick process, we promise!