|
| 1 | +Contribute to the Telerik NativeScript Command-Line Interface |
| 2 | +=== |
| 3 | + |
| 4 | +*Help us improve the Telerik NativeScript CLI* |
| 5 | + |
| 6 | +The Telerik NativeScript CLI lets you create, build, and deploy NativeScript-based projects on iOS and Android devices. |
| 7 | + |
| 8 | +* [Report an Issue](#bug "Learn how to report an issue") |
| 9 | +* [Request a Feature](#request "Learn how to submit a feature or improvement request") |
| 10 | +* [Contribute to the Code Base](#contribute "Learn how to submit your own improvements to the code") |
| 11 | + |
| 12 | +Report an Issue |
| 13 | +=== |
| 14 | +If you find a bug in the source code or a mistake in the documentation, you can submit an issue to our [GitHub Repository][2]. |
| 15 | +Before you submit your issue, search the archive to check if a similar issues has been logged or addressed. This will let us focus on fixing issues and adding new features. |
| 16 | +If your issue appears to be a bug, and hasn't been reported, open a new issue. To help us investigate your issue and respond in a timely manner, you can provide is with the following details. |
| 17 | + |
| 18 | +* **Overview of the issue:** Provide a short description of the visible symptoms. If applicable, include error messages, screen shots, and stack traces. |
| 19 | +* **Motivation for or use case:** Let us know how this particular issue affects your work. |
| 20 | +* **Telerik NativeScript version(s):** List the current version and build number of the CLI interface. You can get it by running `tns --version`. Let us know if you have not observed this behavior in earlier versions and if you consider it a regression. |
| 21 | +* **System configuration:** Provide us with relevant system configuration information such as operating system, network connection, proxy usage, etc. Let us know if you have been able to reproduce the issue on multiple setups. |
| 22 | +* **Steps to reproduce:** If applicable, submit a step-by-step walkthrough of how to reproduce the issue. |
| 23 | +* **Related issues:** If you discover a similar issue in our archive, give us a heads up - it might help us identify the culprit. |
| 24 | +* **Suggest a fix:** You are welcome to suggest a bug fix or pinpoint the line of code or the commit that you believe has introduced the issue. |
| 25 | + |
| 26 | +[Back to Top][1] |
| 27 | + |
| 28 | +Request a Feature |
| 29 | +=== |
| 30 | +You can request a new feature by submitting an issue with the *enhancement* label to our [GitHub Repository][2]. |
| 31 | +If you want to implement a new feature yourself, consider submitting it to the [GitHub Repository][2] as a Pull Request. |
| 32 | + |
| 33 | +[Back to Top][1] |
| 34 | + |
| 35 | +Contribute to the Code Base |
| 36 | +=== |
| 37 | + |
| 38 | +Before you submit a Pull Request, consider the following guidelines. |
| 39 | + |
| 40 | +* Search <a href="https://github.com/Icenium/icenium-cli/pulls">GitHub</a> for an open or closed Pull Request that relates to your submission. |
| 41 | +* Make your changes in a new `git` branch. We use the <a href="http://nvie.com/posts/a-successful-git-branching-model/">Gitflow branching model</a> so you will have to branch from our develop branch. |
| 42 | +```bash |
| 43 | + git checkout -b my-fix-branch develop |
| 44 | +``` |
| 45 | +* Create your patch and include appropriate test cases. |
| 46 | +* Commit your changes and create a descriptive commit message (the commit message is used to generate release notes). |
| 47 | +```bash |
| 48 | + git commit -a |
| 49 | +``` |
| 50 | +* Build your changes locally. |
| 51 | +```bash |
| 52 | + grunt |
| 53 | +``` |
| 54 | +* Ensure all the tests pass. |
| 55 | +```bash |
| 56 | + grunt test |
| 57 | +``` |
| 58 | +* Push your branch to GitHub. |
| 59 | +```bash |
| 60 | + git push origin my-fix-branch |
| 61 | +``` |
| 62 | +* In GitHub, send a Pull Request to icenium-cli:develop. |
| 63 | +* If we suggest changes, you can modify your branch, rebase, and force a new push to your GitHub repository to update the Pull Request. |
| 64 | +```bash |
| 65 | + git rebase develop -i |
| 66 | + git push -f |
| 67 | +``` |
| 68 | + |
| 69 | +That's it! Thank you for your contribution! |
| 70 | + |
| 71 | +When the patch is reviewed and merged, you can safely delete your branch and pull the changes from the main (upstream) repository. |
| 72 | + |
| 73 | +* Delete the remote branch on GitHub. |
| 74 | +```bash |
| 75 | + git push origin --delete my-fix-branch |
| 76 | +``` |
| 77 | +* Check out the develop branch. |
| 78 | +```bash |
| 79 | + git checkout develop -f |
| 80 | +``` |
| 81 | +* Delete the local branch. |
| 82 | +```bash |
| 83 | + git branch -D my-fix-branch |
| 84 | +``` |
| 85 | +* Update your develop branch with the latest upstream version. |
| 86 | +``` |
| 87 | + git pull --ff upstream develop |
| 88 | +``` |
| 89 | + |
| 90 | +[Back to Top][1] |
| 91 | + |
| 92 | +[1]: #contribute-to-the-telerik-nativescript-command-line-interface |
| 93 | +[2]: https://github.com/NativeScript/nativescript-cli |
0 commit comments