For a step-by-step guide on how to make your first contribution, have a look in the README.
- Fork this project.
- Create a feature branch.
- Make your changes.
- Run the game locally
- Run the tests.
- Push your changes to your fork/branch.
- Open a pull request.
- Click the fork button up top.
- Clone your fork locally (Notice that git's
origin
reference will point to your forked repository). - It is useful to have the upstream repository registered as well using:
git remote add upstream https://github.com/ollelauribostrom/rebus.git
and periodically fetch it usinggit fetch upstream
.
Create and switch to a new feature branch: git checkout -b {branch_name} upstream/master
(replace {branch_name}
with a meaningful name that describes your feature or change).
Now that you have a new branch you can edit/create/delete files. Use touch-up commits using git commit --amend
. (You may use git force push after that).
- Install the dependencies:
npm install
. - Start the local development server:
npm start
.
- Run tests:
npm test
. - Run lint:
npm run lint
. - Run tests and lint:
npm run test:all
.
After lint and all tests pass, push the changes to your fork/branch on GitHub: git push origin {branch_name}
. For force push, which will destroy previous commits on the server, use --force
(or -f
) option.
Create a pull request on GitHub for your feature branch.