We welcome and encourage community contributions to help improving ReactPage!
Please familiarize yourself with the Contribution Guidelines and Project Roadmap before contributing.
There are many ways to help ReactPage besides contributing code:
- Use it!
- Fix bugs or file issues
- Improve the documentation
- Participate in Discussions
- Spread the word about ReactPage!
We want to keep the barrier to contribute as low as possible, but we still recommend to follow some rules:
- Feel free to open Pull Requests that fix open issues!
- File an issue before opening a Pull Request about a new feature, so that discussion about the feature can take place.
- Try to keep your commits clean and rebase them before merging.
- All contributions are made via pull request. Note that all patches from all contributors get reviewed. After a pull request is made other contributors will offer feedback, and if the patch passes review a maintainer will accept it with a comment. When pull requests fail testing, authors are expected to update their pull requests to address the failures until the tests pass and the pull request merges successfully. At least one review from a maintainer is required for all patches (even patches from maintainers). Reviewers should leave a "LGTM" comment once they are satisfied with the patch. If the patch was submitted by a maintainer with write access, the pull request should be merged by the submitter after review.
- Commit messages have to be semantic and following this convention:
feat(scope): describe the new feature
e.g.
feat(ui): added button to duplicate content
(scope is optional).
feat:
will bump the minor version
fix(scope): the issue that was fixed
e.g.
fix(ie11): on ie11 an error is thrown
(scope again is optional)
fix:
will bump the patch version
if your feature or fix contain a breaking change, its important to format the commit message as this:
feat(layout): its possible to customize rows
BREAKING CHANGE: the classNames xxx-yyyyy have been replace with zzzzz
(mind the newline between the first line and third line)
BREAKING CHANGE:
will bump the major version (once we are at ^1.0.0)
Do you want to run, develop or contribute to ReactPage? For that you need Node installed on your system. Use git to check out this repository as followed.
$ git clone https://github.com/react-page/react-page.git
$ cd react-page
ReactPage is a monorepo that you initialize with:
$ yarn
$ yarn bootstrap
we use yarn, but npm should work as well.
Here are some examples that are a good starting point if you want to familiarize yourself with the editor. The examples use nextjs also to test server-side-rendering and real-world usage.
To run the examples, use the following command:
$ yarn dev
It willl a development server under http://localhost:3000
Docs are available under http://localhost:3000/docs when running the examples.
But you can start docsify stand-alone with yarn docs
. The docs will then be available through http://localhost:3100.
Generating automatic api docs is planned. We encourage to annotate public Component, hooks and types with jsdoc. This will be visible in editors and also in the generated api docs.
The tool chain contains tests and eslint. It is highly recommended to run this while developing.
# run the tests in watch mode
$ yarn run test:watch
# run tslint in watch mode
$ yarn run lint:watch
Feel free to use whatever works for you, these works for us. Especially care about using "prettier" when writing code as it will avoid merge conflicts on code style.
IDE: vscode Vscode extensions: prettier, eslint, code spell checker, beautify css/sass/scss/less