Blame | Last modification | View Log | RSS feed
Contributing to typeahead.js============================*These contributing guidelines were proudly stolen from the[Flight](https://github.com/flightjs/flight) project*Looking to contribute something to typeahead.js? Here's how you can help.Bugs Reports------------A bug is a _demonstrable problem_ that is caused by the code in therepository. Good bug reports are extremely helpful – thank you!Guidelines for bug reports:1. **Use the GitHub issue search** — check if the issue has already beenreported.2. **Check if the issue has been fixed** — try to reproduce it using thelatest `master` or integration branch in the repository.3. **Isolate the problem** — ideally create a reduced testcase and a live example.4. Please try to be as detailed as possible in your report. Include specificinformation about the environment – operating system and version, browserand version, version of typeahead.js – and steps required to reproduce theissue.Feature Requests & Contribution Enquiries-----------------------------------------Feature requests are welcome. But take a moment to find out whether your ideafits with the scope and aims of the project. It's up to *you* to make a strongcase for the inclusion of your feature. Please provide as much detail andcontext as possible.Contribution enquiries should take place before any significant pull request,otherwise you risk spending a lot of time working on something that we mighthave good reasons for rejecting.Pull Requests-------------Good pull requests – patches, improvements, new features – are a fantastichelp. They should remain focused in scope and avoid containing unrelatedcommits.Make sure to adhere to the coding conventions used throughout the codebase(indentation, accurate comments, etc.) and any other requirements (such as testcoverage).Please follow this process; it's the best way to get your work included in theproject:1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,and configure the remotes:```bash# Clone your fork of the repo into the current directorygit clone https://github.com/<your-username>/typeahead.js# Navigate to the newly cloned directorycd <repo-name># Assign the original repo to a remote called "upstream"git remote add upstream git://github.com/twitter/typeahead.js```2. If you cloned a while ago, get the latest changes from upstream:```bashgit checkout mastergit pull upstream master```3. Install the dependencies (you must have Node.js and [Bower](http://bower.io)installed), and create a new topic branch (off the main project developmentbranch) to contain your feature, change, or fix:```bashnpm installbower installgit checkout -b <topic-branch-name>```4. Make sure to update, or add to the tests when appropriate. Patches andfeatures will not be accepted without tests. Run `npm test` to check thatall tests pass after you've made changes.5. Commit your changes in logical chunks. Provide clear and explanatory commitmessages. Use Git's [interactive rebase](https://help.github.com/articles/interactive-rebase) feature to tidy upyour commits before making them public.6. Locally merge (or rebase) the upstream development branch into your topic branch:```bashgit pull [--rebase] upstream master```7. Push your topic branch up to your fork:```bashgit push origin <topic-branch-name>```8. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)with a clear title and description.9. If you are asked to amend your changes before they can be merged in, pleaseuse `git commit --amend` (or rebasing for multi-commit Pull Requests) andforce push to your remote feature branch. You may also be asked to squashcommits.License-------By contributing your code,You agree to license your contribution under the terms of the MIT Licensehttps://github.com/twitter/typeahead.js/blob/master/LICENSE