Before to contribute to agora-rtc-react, There are a few things you need to know.
agora-rtc-react has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.
We are using GitHub Issues for our public bugs. We keep a close eye on this and try to make it clear when we have an internal fix in progress. Before filing a new task, try to make sure your problem doesn’t already exist.
Working on your first Pull Request? You can learn how from this free video series: How to Contribute to an Open Source Project on GitHub
Before submitting a pull request, please make sure the following is done:
- Fork the repository and create your branch from
main
. - Run
pnpm install
in the repository root. - Ensure the test suite passes (
pnpm test
). - Make sure your code lints (
pnpm lint
).
pnpm start
start example app.pnpm storybook
start storybook.pnpm build-storybook
creates a storybook-static folder with storybook.pnpm test
runs the complete test suite.pnpm build
creates a dist folder with all the packages.
We use an automatic code formatter called Prettier.
And we use typescript to make sure our code better. To make sure our code is follow the rules, we use linter called ESlint.
It will find and fix some problem in our JS/TS code. Our ESlint rules is here.
The last, we use husky to checks the code style before commit to git.