You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CONTRIBUTING.md 1.7 KiB

4 years ago
1234567891011121314151617181920212223242526272829303132333435363738
  1. Submitting Issues
  2. =================
  3. If you are submitting a bug, please test and/or fork [this jsfiddle](http://jsfiddle.net/Eonasdan/0Ltv25o8/) demonstrating the issue. Code issues and fringe case bugs that do not include a jsfiddle (or similar) will be closed.
  4. Issues that are submitted without a description (title only) will be closed with no further explanation.
  5. Contributing code
  6. =================
  7. To contribute, fork the library and install grunt and dependencies. You need [node](http://nodejs.org/); use [nvm](https://github.com/creationix/nvm) or [nenv](https://github.com/ryuone/nenv) to install it.
  8. ```bash
  9. git clone https://github.com/Eonasdan/bootstrap-datetimepicker.git
  10. cd bootstrap-datetimepicker
  11. npm install -g grunt-cli
  12. npm install
  13. git checkout development # all patches against development branch, please!
  14. grunt # this runs tests and jshint
  15. ```
  16. Very important notes
  17. ====================
  18. * **Pull requests to the `master` branch will be closed.** Please submit all pull requests to the `development` branch.
  19. * **Do not include the minified files in your pull request.** Don't worry, we'll build them when we cut a release.
  20. * Pull requests that do not include a description (title only) and the following will be closed:
  21. * What the change does
  22. * A use case (for new features or enhancements)
  23. Grunt tasks
  24. ===========
  25. We use Grunt for managing the build. Here are some useful Grunt tasks:
  26. * `grunt` The default task lints the code and runs the tests. You should make sure you do this before submitting a PR.
  27. * `grunt build` Compiles the less stylesheet and minifies the javascript source in build directory.
  28. * `grunt build:travis` Compliles and runs the jasmine/travis tests. **All PR's MUST pass tests in place**