🎉 Thanks for taking the time to contribute! 🎉
The following is a set of guidelines for contributing to this repo. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document.
What should I know before I get started?
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code.
Create a bug report issue
Create a feature request issue
Install dependencies using the package node version.
[react-mirror]$ nvm use
[react-mirror]$ npm i -g pnpm
[react-mirror]$ pnpm i
NPM package source code is located in ./src
with tests in the same folder.
Add jest style tests for new changes.
[react-mirror]$ pnpm test
After setup, build changes to NPM package source code, then run demo
app to validate local dev react-mirror
.
[react-mirror]$ pnpm build
[react-mirror]$ cd ./demo
[react-mirror/demo]$ make start
NOTE: Use pnpm build-watch
instead to watch code changes when in active development.
After validating your changes and adding tests, push commits to a new branch and create a pull request using the provided GitHub template.
Package using semantic commits convention.
git commit -m "fix: that one bug" -m "implementation details"
See the link above or commits in the repo for more examples.
Post install gives you access to the linter and static type checker.
[react-mirror]$ pnpm lint
[react-mirror]$ pnpm typecheck