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.

65 lines
4.1 KiB

  1. # Report an Issue
  2. Help us make UI-Router better! If you think you might have found a bug, or some other weirdness, start by making sure
  3. it hasn't already been reported. You can [search through existing issues](https://github.com/angular-ui/ui-router/search?q=wat%3F&type=Issues)
  4. to see if someone's reported one similar to yours.
  5. If not, then [create a plunkr](http://bit.ly/UIR-Plunk) that demonstrates the problem (try to use as little code
  6. as possible: the more minimalist, the faster we can debug it).
  7. Next, [create a new issue](https://github.com/angular-ui/ui-router/issues/new) that briefly explains the problem,
  8. and provides a bit of background as to the circumstances that triggered it. Don't forget to include the link to
  9. that plunkr you created!
  10. **Note**: If you're unsure how a feature is used, or are encountering some unexpected behavior that you aren't sure
  11. is a bug, it's best to talk it out on
  12. [StackOverflow](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router) before reporting it. This
  13. keeps development streamlined, and helps us focus on building great software.
  14. Issues only! |
  15. -------------|
  16. Please keep in mind that the issue tracker is for *issues*. Please do *not* post an issue if you need help or support. Instead, see one of the above-mentioned forums or [IRC](irc://irc.freenode.net/#angularjs). |
  17. ####Purple Labels
  18. A purple label means that **you** need to take some further action.
  19. - ![Not Actionable - Need Info](http://angular-ui.github.io/ui-router/images/notactionable.png): Your issue is not specific enough, or there is no clear action that we can take. Please clarify and refine your issue.
  20. - ![Plunkr Please](http://angular-ui.github.io/ui-router/images/plunkrplease.png): Please [create a plunkr](http://bit.ly/UIR-Plunk)
  21. - ![StackOverflow](http://angular-ui.github.io/ui-router/images/stackoverflow.png): We suspect your issue is really a help request, or could be answered by the community. Please ask your question on [StackOverflow](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router). If you determine that is an actual issue, please explain why.
  22. If your issue gets labeled with purple label, no further action will be taken until you respond to the label appropriately.
  23. # Contribute
  24. **(1)** See the **[Developing](#developing)** section below, to get the development version of UI-Router up and running on your local machine.
  25. **(2)** Check out the [roadmap](https://github.com/angular-ui/ui-router/milestones) to see where the project is headed, and if your feature idea fits with where we're headed.
  26. **(3)** If you're not sure, [open an RFC](https://github.com/angular-ui/ui-router/issues/new?title=RFC:%20My%20idea) to get some feedback on your idea.
  27. **(4)** Finally, commit some code and open a pull request. Code & commits should abide by the following rules:
  28. - *Always* have test coverage for new features (or regression tests for bug fixes), and *never* break existing tests
  29. - Commits should represent one logical change each; if a feature goes through multiple iterations, squash your commits down to one
  30. - Make sure to follow the [Angular commit message format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format) so your change will appear in the changelog of the next release.
  31. - Changes should always respect the coding style of the project
  32. # Developing
  33. UI-Router uses <code>grunt >= 0.4.x</code>. Make sure to upgrade your environment and read the
  34. [Migration Guide](http://gruntjs.com/upgrading-from-0.3-to-0.4).
  35. Dependencies for building from source and running tests:
  36. * [grunt-cli](https://github.com/gruntjs/grunt-cli) - run: `$ npm install -g grunt-cli`
  37. * Then, install the development dependencies by running `$ npm install` from the project directory
  38. There are a number of targets in the gruntfile that are used to generating different builds:
  39. * `grunt`: Perform a normal build, runs jshint and karma tests
  40. * `grunt build`: Perform a normal build
  41. * `grunt dist`: Perform a clean build and generate documentation
  42. * `grunt dev`: Run dev server (sample app) and watch for changes, builds and runs karma tests on changes.