Thank you for taking time to contribute. We are delighted to receive contributions from the community. For wink every contribution matters — whether you are reporting a bug, posting a question, submitting a pull request or updating the documentation.
- Fork the repository from github
- Develop your code changes
- Ensure that the API is properly documented
- Capture the logic in comments
- Ensure proper linting via
npm run pretest
- Run tests using
npm run test
- Make sure coverage either stays at the current levels or improves
- Commit your changes in compliance with commit guidelines
- Push to your fork
- Sign the CLA if you are contributing for the first time
- Finally, submit a pull request.
By contributing, you are expected to uphold wink’s code of conduct. In essence, each one of us should:
- respect fellow contributors, irrespective of their level of experience, race, religion, gender, sexual orientation, and age;
- collaborate constructively;
- never engage in any form of offense, harassment, insult, personal attack, provocation and/or use of inappropriate language;
Wink is a growing open source project focusing on Natural Language Processing, Machine Learning and Statistics. It contains multiple repositories or packages. All packages expose consistent and uniform APIs, thus minimizing the need to learn a new interface for each task. Do take out some time in understanding the structure of APIs, before attempting any enhancements. In wink, we prefer functions and closures over objects.
Like artisans, we too need a toolset and process to create beautiful software. The process is orchestrated by Travis CI in accordance to the configuration files present in each repository. The details and tools used are outlined below.
Well defined linting rules helps us in making code more consistent and avoid bugs. ESLint enforces these rules via its configuration file. This file is located in the root of each repository.
We believe that the documentation must not only explain the API but also narrate the story of logic, algorithms and references used. Wink uses the JSDoc standard for API documentation and Literate-Programming Standards for documenting the logic using docker. The API documentation quality is measured using Inch CI and we expect that your contribution will improve or maintain the current levels.
Wink requires a test coverage of atleast > 99.5% and aims for 100%. Any new contribution must maintain the existing test coverage level. We use Chai, Mocha and Istanbul, Coveralls to run tests and determine coverage.
We follow commit guidelines from the Google's Angular Project, whose documentation is licensed under CC BY 4.0. See important excerpts for quick reference below:
Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
The header is mandatory and the scope of the header is optional. Any line of the commit message should not be longer 100 characters!
Type should be one of the following:
feat:
A new featurefix:
A bug fixdocs:
Documentation only changesstyle:
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)refactor:
A code change that neither fixes a bug nor adds a featureperf:
A code change that improves performancetest:
Adding missing or correcting existing testschore:
Changes to the build process or auxiliary tools and libraries such as documentation generationrevert:
when you have to revert to an older commit. Ths subject should be the header of old commit and body should containThis reverts commit <hash>.
Usegit revert
command to accomplish this.
Scope specifies the place of the commit change. You can use *
when the change affects more than a single scope.
Subject must contain a crisp description of the change and it must (a) use the imperative, present tense: "change" not "changed" nor "changes", (b) not capitalize the first letter, and (c) not use period (.) at the end.
Body just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change.
Footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit closes. Breaking Changes should start with the word BREAKING CHANGE:
with a space or two newlines. The rest of the commit message is then used for this.
The CLA is for your protection as well as the protection of GRAYPE and it’s licensees; it does not change your rights to use your own Contributions for any other purpose. Our CLA is a short and easy to understand agreement and can be signed using a simple click-through form. Please sign our Contributor License Agreement (CLA) before sending pull requests. It's a quick process, we promise!