diff --git a/.npmignore b/.npmignore index c5413aa..6cc7613 100644 --- a/.npmignore +++ b/.npmignore @@ -5,6 +5,7 @@ appveyor.yml AUTHORS.md changelog.md CODE_OF_CONDUCT.md +CONTRIBUTING.md examples/ Gruntfile.js PUBLISHING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..88494ce --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,72 @@ +# Contribute to SerialPort! + +Do you want to help out but don't know where to start? + +## Guideline Contents + +There are a lot of ways to get involved and help out: +- [Reporting an issue](#reporting-issues) +- [Requesting features](#requesting-features) +- [Submitting Pullrequests](#pullrequests) +- [Writing tests](#writing-tests) +- [Writing Documentation](#writing-docs) +- [Sample Projects](#sample-projects) + + +## Reporting An Issue + +SerialPort does it's [issue tracking](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues) through github. To report an issue first search the repo to make sure that it has not been reported before. If no one has reported the bug before, create a new issue and be sure to include the following information: + +Operating System and Hardware: +NodeJS Version: +Serialport version: +Python Version (if you're having trouble building serialport): + + +**Operating System:** (e.g Windows, OSX, Linux) +**NodeJS Version:** +**SerialPort Version** +**Hardware you are having an issue with:** (e.g. arduino, another computer, etc) +**What your expectations are:** +**What the actual outcome is:** +**Steps to reproduce (including code samples):** + +If the issue has been reported before but you have new information to help troubleshoot the issue, add a comment to the thread with the same information as requested above. + + + +## Requesting Features +To request a new feature be added take a look at the [current roadmap](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/746) and create a [github issue](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues) and include: + +**What feature you'd like to see:** +**Why this is important to you:** (this is here because it's interesting knowing what cool things people are working on and also could help community members make suggestions for work-arounds until the feature is built) + + +## Submitting Pull Requests +To contribute code to SerialPort, fork the project onto your github account and do your work in a branch. Before you submit the PR, make sure to rebase master into your branch so that you have the most recent changes and nothing breaks or conflicts. Lint and test your code using [grunt](https://github.com/gruntjs/grunt). Also squash your commits to a reasonable size before submitting. + +All contributions must adhere to the eslint rules by maintaining the existing coding style. + +If you are contributing code, it must include unit tests that fail if the working code isn't present and succeed when it is. + +When contributing new features you must include documentation. + +It's very important that your pull requests include all of the above in order for users to be able to use your code. Pull requests with undocumented code will not be accepted. + + + +## Writing Tests + +Tests are written using [mocha](https://mochajs.org/), [chai](http://chaijs.com/) and [sinon](http://sinonjs.org/). If you are having issues making a test pass, ask for help in the SerialPort [gitter](https://gitter.im/EmergingTechnologyAdvisors/node-serialport) room. Tests can be the hardest part to write when contributing code, so don't be discouraged. + + +## Writing Documentation + +We are always looking to improve our docs. If you find that any are lacking information or have wrong information, fix and submit a PR. If you're looking for areas to start writing docs for, see the [docs](https://github.com/EmergingTechnologyAdvisors/node-serialport/labels/docs) label in issues. + +Docs should have tested and working sample code. Many people using SerialPort are learning how to work with hardware for the first time, so write for a beginner audience. + + +## Sample Projects + +Have you made something cool with SerialPort? Is it part of your latest product? Let us know! There are a lot of people out there hacking on similar projects and looking for ideas, help or code. It's great to share! \ No newline at end of file diff --git a/README.md b/README.md index 8755f1b..3734125 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ For support you can open a [github issue](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/new), for discussions, designs, and clarifications, we recommend you join our [Gitter Chat room](https://gitter.im/EmergingTechnologyAdvisors/node-serialport). We have two related projects [Browser Serialport](https://github.com/garrows/browser-serialport) "just like Node Serialport but for browser apps", and [Serialport Test Piliot](https://github.com/j5js/serialport-test-pilot) which helps us test serialport. -If you'd like to contriubte please take a look at our code of coduct, then our road map. We also have issues tagged "good first PR" if you'd like to start somewhere specific. We'll do our best to support you until your PR is merged. +If you'd like to contribute please take a look at [contribution guide](CONTRIBUTING.md) and [code of conduct](CODE_OF_CONDUCT.md). You also might want to see the [road map](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/746). We also have issues tagged ["good first PR"](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+pr%22) if you'd like to start somewhere specific. We'll do our best to support you until your PR is merged. ***