Some dev improvements: * Add .editorconfig config file https://editorconfig.org/ * move the singleQuote spec into .editorconfig and add old .changesets/*.md to .prettierignore so that we don't incorrectly reformat new changeset files to single quote from the double quote which they can be autogenerated with in github * .gitignore Ignore emacs chaff files * Add `yarn format:head` a convenience command to run prettier against just those files in the head commit * Some mention of `yarn format` in the docs * Fix some test html closing tags; authoring mistakes, rather than deliberately malformed html — picked up by an explicit `yarn prettier --write '**/*.html'`
46 lines
1.6 KiB
Markdown
46 lines
1.6 KiB
Markdown
# Contributing to rrweb
|
|
|
|
We want to make contributing to this project as easy and transparent as
|
|
possible.
|
|
|
|
## Our Development Process
|
|
|
|
The majority of development on rrweb will occur through GitHub. Accordingly,
|
|
the process for contributing will follow standard GitHub protocol.
|
|
|
|
## Pull Requests
|
|
|
|
We actively welcome your pull requests (PRs)!
|
|
|
|
1. Fork the repo and create your branch from `master`.
|
|
2. If you've added code that should be tested, add tests
|
|
3. Ensure the test suite passes or ask for help as to why tests are failing
|
|
4. We use [changesets](https://github.com/changesets/changesets/blob/main/docs/intro-to-using-changesets.md) to enable you to easily document your PR so that it can be packaged up into the next release. A github plugin will prompt you to fill in your changeset if you haven't already done so.
|
|
5. If you've changed APIs, update the documentation.
|
|
6. Make sure your code lints and typechecks.
|
|
|
|
## Issues
|
|
|
|
We use GitHub issues to track public bugs. Please ensure your description is
|
|
clear and has sufficient instructions to be able to reproduce the issue.
|
|
|
|
## Run locally
|
|
|
|
- Install dependencies: `yarn`
|
|
- Run recorder on a website: `yarn repl`
|
|
- Run a cobrowsing/mirroring session locally: `yarn live-stream`
|
|
- Test: `yarn test` or `yarn test:watch`
|
|
- Lint: `yarn lint`
|
|
- Rewrite files with prettier: `yarn format` or `yarn format:head`
|
|
|
|
## Coding style
|
|
|
|
See [documentation](docs/development/coding-style.md)
|
|
|
|
## License
|
|
|
|
rrweb is [MIT licensed](https://github.com/rrweb-io/rrweb/blob/master/LICENSE).
|
|
|
|
By contributing to rrweb, you agree that your contributions will be licensed
|
|
under its MIT license.
|