Contributing
May 23, 2016 ยท View on GitHub
- Fork it!
- Create a remote link with main repository:
git remote add upstream git@github.com:fdaciuk/ajax.git; - Update your local repository:
git fetch upstream; - Link
devbranch with main repository:git checkout upstream/dev -b dev; - Create your feature branch based on
dev:git checkout -b my-new-feature;
Running
Install local modules:
npm i
Then, you can start the webserver and execute tests with the following command:
npm run test:watch
- Write tests for your feature;
When you're ready, continue with next steps:
- Assure that the code has no lint errors;
- If some error was displayed, execute
npm run formatto fix it; - Add your changes:
git add .; - Commit your changes:
git commit -m 'Add some feature'; - Push to the branch:
git push origin my-new-feature; - Submit a pull request for
devbranch, and summon@fdaciuk:D
Running tests once
Just execute npm test.
Tips
- Send only one feature for Pull Request;
- Send small Pull Requests;
- Write tests for all features.
Build steps
If you are sending a pull request, you don't need run this commands.
With the latest code version on dev branch, it will be executed the following steps:
On dev branch, just Run this command:
npm version <version>
When <version> may be patch, minor ou major.
And done ;)