|
| 1 | +# CONTRIBUTING |
| 2 | + |
| 3 | +Your contributions to this project are highly appreciated. Please adhere to this guide to streamline the process for everyone. |
| 4 | + |
| 5 | +By contributing code to this project, you agree to license your contribution under the [GNU Affero General Public License](/LICENSE). |
| 6 | + |
| 7 | +## Code Formatting and Linting Process |
| 8 | + |
| 9 | +In our development workflow, we prioritize code quality through the use of the highly opinionated code formatter, Prettier. We have automated the formatting and linting processes on every staged commit to ensure that our codebase adheres to consistent standards. |
| 10 | + |
| 11 | +Feel free to reach out if you have any questions or need further clarification on our code formatting and linting practices. |
| 12 | + |
| 13 | +## Issues |
| 14 | + |
| 15 | +Use issues exclusively for bug reporting and proposing enhancements. For questions, ideas, or other matters, visit our [discussions page](https://github.com/ceebluetv/webrtc-client/discussions). |
| 16 | + |
| 17 | +When reporting bugs, describe the problem clearly and provide all relevant information to replicate it. Describe both the expected and actual behavior as detailed as possible. |
| 18 | + |
| 19 | +🐛 **[File a bug report](https://github.com/CeeblueTV/videojs-plugins/issues/new?assignees=&labels=&template=01-bug.md&title=)** |
| 20 | +✨ **[Propose enhancement](https://github.com/CeeblueTV/videojs-plugins/issues/new?assignees=&labels=&template=02-enhancement.md&title=)** |
| 21 | + |
| 22 | +## Pull Requests |
| 23 | + |
| 24 | +To contribute fork the project, then submit a Pull-Request with your changes, targeting the **dev** branch. |
| 25 | + |
| 26 | +## Commit Formatting |
| 27 | + |
| 28 | +We use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) for continuous deployment, versioning, and changelog creation. |
| 29 | + |
| 30 | +Once `npm install` is executed, git hooks aid in the committing process. Should the hooks not install automatically, run `npm rebuild husky`. Use `git commit` to commit your changes; [Commitizen](https://github.com/commitizen/cz-cli) assists in crafting a structured commit message. To complete the commit, close the text editor that appears (typically with ctrl + x), and then `git push` as usual. |
| 31 | + |
| 32 | +## Getting Started |
| 33 | + |
| 34 | +Make sure you have Node.js 8 or higher and npm installed. |
| 35 | + |
| 36 | +1. Fork this repository and clone your fork |
| 37 | +1. Install dependencies: `npm install` |
| 38 | +1. Run a development server: `npm start` |
| 39 | + |
| 40 | +### Running Tests |
| 41 | + |
| 42 | +Testing is a crucial part of any software project. For all but the most trivial changes (typos, etc) test cases are expected. Tests are run in actual browsers using [Karma][karma]. |
| 43 | + |
| 44 | +- In all available and supported browsers: `npm test` |
| 45 | +- In a specific browser: `npm run test:chrome`, `npm run test:firefox`, etc. |
| 46 | +- While development server is running (`npm start`), navigate to [`http://localhost:9999/test/`][local] |
| 47 | + |
| 48 | +## [Developer's Certificate of Origin 1.1](https://github.com/nodejs/node/blob/main/CONTRIBUTING.md#developers-certificate-of-origin-11) |
| 49 | + |
| 50 | +By making a contribution to this project, I certify that: |
| 51 | + |
| 52 | +* (a) The contribution was created in whole or in part by me and I |
| 53 | + have the right to submit it under the open source license |
| 54 | + indicated in the file; or |
| 55 | + |
| 56 | +* (b) The contribution is based upon previous work that, to the best |
| 57 | + of my knowledge, is covered under an appropriate open source |
| 58 | + license and I have the right under that license to submit that |
| 59 | + work with modifications, whether created in whole or in part |
| 60 | + by me, under the same open source license (unless I am |
| 61 | + permitted to submit under a different license), as indicated |
| 62 | + in the file; or |
| 63 | + |
| 64 | +* (c) The contribution was provided directly to me by some other |
| 65 | + person who certified (a), (b) or (c) and I have not modified |
| 66 | + it. |
| 67 | + |
| 68 | +* (d) I understand and agree that this project and the contribution |
| 69 | + are public and that a record of the contribution (including all |
| 70 | + personal information I submit with it, including my sign-off) is |
| 71 | + maintained indefinitely and may be redistributed consistent with |
| 72 | + this project or the open source license(s) involved. |
| 73 | + |
| 74 | +[karma]: http://karma-runner.github.io/ |
| 75 | +[local]: http://localhost:9999/test/ |
| 76 | +[conventions]: https://github.com/videojs/generator-videojs-plugins/blob/master/docs/conventions.md |
0 commit comments