Thank you for your interest in contributing to fork-me-corner
!
To contribute, first you need to fork the repository and clone it to your machine.
You can follow this documentation to learn how to do.
After that, you just need to enter on the directory and install all the dependencies with the command:
$ yarn
and start the server with:
$ yarn dev
This will make a next.js page available on your localhost. And that page is the fork-me-corner playground where the user can test all component properties and preview how it will look.
To create new features for the fork-me-corner component, just enter the /src/fork-me-corner/src/fork-me-corner.tsx
directory and you will find all the
source code of the component itself. So feel free to change and improve the
code or bring new features that will add value to the component without
forgetting to always focus on performance and security.
To view the component with the new features added you can access the playground
page. And if you've added any new properties that can be passed to the component,
don't forget to create an area on the playground page so that users can test and
preview it. To change the page code, just access the ./src/pages/index.tsx
directory.
Now that all the changes are done and tested, just add them, commit them and push them with the commands:
$ git add .
$ yarn commit
$ git push
Now you can follow this instructions to open a Pull Request.
Try to be as descriptive as possible in your PR, if possible add photos and videos of the changes made so that they are approved as soon as possible.
- Use
TSX
to create new components or new code. - Use
const
where possible, otherwiselet
. Don't usevar
. - Always write tests.
We follow the aribnb eslint style guide, so:
- Prefer to create components with arrow functions.
- Use semicolons.
- No space between function names and parens (
someFunction() {}
notsomeFunction () {}
). - Always use parentheses around properties of arrow functions.