Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests, but please respect the following restrictions:
-
Please do not use the issue tracker for personal support requests (use Stack Overflow or IRC).
-
Please do not derail or troll issues. Keep the discussion on topic and respect the opinions of others.
A bug is a demonstrable problem that is caused by the code in the repository. Good bug reports are extremely helpful - thank you!
Guidelines for bug reports:
-
Use the GitHub issue search. Check if the issue has already been reported.
-
Check if the issue has been fixed. Try to reproduce it using the latest
master
or development branch in the repository. -
Provide environment details. Provide your operating system, browser(s), jQuery version, Bootstrap version, and bootstrap-select version.
-
Create an isolated and reproducible test case. Create a reduced test case.
-
Include a live example. Use this Plunker debugging template to share your isolated test cases. You can also make use of jsFiddle or jsBin.
A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) and OS experience the problem? What would you expect to be the outcome? All these details will help people to fix any potential bugs.
Example:
Short and descriptive example bug report title
A summary of the issue and the browser/OS environment in which it occurs. If suitable, include the steps required to reproduce the bug.
- This is the first step
- This is the second step
- Further steps, etc.
<url>
- a link to the reduced test caseAny other information you want to share that is relevant to the issue being reported. This might include the lines of code that you have identified as causing the bug, and potential solutions (and your opinions on their merits).
Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
You must understand that by contributing code to this project, you are granting the authors (and/or leaders) of the project a non-exclusive license to re-distribute your code under the current license and possibly re-license the code as deemed necessary.
- To instantiate a context or use it, use the variable that instead of _this.
- Please check to make sure that there aren't existing pull requests attempting to address the issue mentioned. We also recommend checking for issues related to the issue on the tracker, as a team member may be working on the issue in a branch or fork.
- Non-trivial changes should be discussed in an issue first
- When modifying files, please do not edit the generated or minified files in the dist/ directory. Please edit the original files.
- If possible, add relevant tests to cover the change
- Write a convincing description of your PR and why we should land it
We are using node and grunt to build and (in the future) test this project. This means that you must setup a local development environment:
- Install
node
andnpm
using your preferred method - Install the grunt CLI:
npm install -g grunt-cli
- Install the project's development dependencies:
npm install
- Run the various grunt tasks as needed:
grunt
: clean the distribution files and re-build themgrunt dist
: build the distribution filesgrunt clean
: clean the distribution filesgrunt dist-css
: build the css distribution filesgrunt dist-js
: build the javascript distribution filesgrunt watch
: watch for changes in the source files and build the distribution files as needed