Recommend this page to a friend! |
Classes of fathurrahman | mnTemplate | public/asset/vendor/select2/.github/CONTRIBUTING.md | Download |
|
DownloadGuidelines for Getting Help with Select2Before you open a new issue, you must read these guidelines. If it is evident from your issue that you failed to research your question properly, your issue may be closed without being answered. TroubleshootingThere are some common problems that developers may encounter when using working with Select2 for the first time. If you are new to Select2, please consult the common problems section of the documentation first. If you don't find what you're looking for there, then please check the the forums, Stack Overflow and existing issues, both opened and closed. Your question may have already been asked and answered before! Asking for HelpIn general, the Github issue tracker should only be used for bug reports and feature requests. If you're just having trouble getting something to work, you should ask in the forums or on Stack Overflow instead. Rules for all community platforms
Stack OverflowTag your question with the GitHub Issue TrackerWe really appreciate clear bug reports that _consistently_ show an issue _within Select2_. If you are reporting a bug, you must follow these steps:
Requesting features in Select2Select2 is a large library that carries with it a lot of functionality. Because of this, many feature requests will not be implemented in the core library. Before starting work on a major feature for Select2, post to the forums first or you may risk spending a considerable amount of time on something which the project developers are not interested in bringing into the project. Contributing to Select2Select2 is made up of multiple submodules that all come together to make the standard and extended builds that are available to users. The build system uses Node.js to manage and compile the submodules, all of which is done using the Grunt build system. Installing development dependenciesSelect2 can be built and developed on any system which supports Node.js. You can download Node.js at [their website][nodejs]. All other required Node.js packages can be installed using [npm][npm], which comes bundled alongside Node.js.
You may need to install Building the Select2 componentSelect2 uses the [Grunt][grunt] build task system and defines a few custom
tasks for common routines. One of them is the
You can also generate the minified versions (
Running testsSelect2 uses the QUnit test system to test individual components.
Setting up the documentation repoThe documentation for Select2 is maintained in a separate repository. Select2.org is built with the flat-file CMS Grav, using their RTFM skeleton. The documentation files themselves are written in Markdown, and can be found in the If you'd like to set up a local instance of the entire documentation website, you must first have a web server (Nginx, Apache, etc) and PHP installed locally. Then, follow these steps: Step 1 - Install GravThis application uses the Grav CMS. This repository does not contain a full Grav installation - rather, it just contains the contents of Grav's To install this website on your computer, first install grav core in a project folder called When you're done it might look something like this:
Step 2Grav needs your webserver to be able to write to certain directories. Make sure that Step 3Visit the local installation in your browser! For example, http://localhost/select2-docs. Submitting a pull requestWe use GitHub's pull request system for submitting patches. Here are some guidelines to follow when creating the pull request for your fix.
By following these steps, you will make it easier for your pull request to be reviewed and eventually merged. Triaging issues and pull requestsAnyone can help the project maintainers triage issues and review pull requests. Handling new issuesSelect2 regularly receives new issues which need to be tested and organized. When a new issue that comes in that is similar to another existing issue, it
should be checked to make sure it is not a duplicate. Duplicates issues should
be marked by replying to the issue with "Duplicate of #[issue number]" where
If you can test issues that are reported to Select2 that contain test cases and confirm under what conditions bugs happen, that will allow others to identify what causes a bug quicker. Reviewing pull requestsIt is very common for pull requests to be opened for issues that contain a clear solution to the problem. These pull requests should be rigorously reviewed by the community before being accepted. If you are not sure about a piece of submitted code, or know of a better way to do something, do not hesitate to make a comment on the pull request. Reviving old ticketsIf you come across tickets which have not been updated for a while, you are encouraged to revive them. If you do, please include more information in your comment on the issue. Common bugs and feature requests are more likely to be fixed, whether it is by the community or the developers, so keeping tickets up to date is encouraged. LicensingIt should also be made clear that all code contributed to Select must be licensable under the [MIT license][licensing]. Code that cannot be released under this license cannot be accepted into the project. [grunt]: http://gruntjs.com/ [isolated-case]: http://css-tricks.com/6263-reduced-test-cases/ [issue-search]: https://github.com/select2/select2/search?q=&type=Issues [issue-tracker]: https://github.com/select2/select2/issues [licensing]: https://github.com/select2/select2/blob/master/LICENSE.md [nodejs]: https://nodejs.org/ [npm]: https://www.npmjs.com/ |