Thanks for taking your time to read this. We're thrilled you're reading this because we the help from the community to keep improving this project.
We have a handful of Cucumber features, but most of our testbed consists of RSpec examples. Please write RSpec examples for new code you create.
Please send a GitHub Pull Request with a clear list of what you've done (read more about pull requests). When you send a pull request, we will love you forever if you include a test to cover your changes. We can always use more test coverage. Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this: $ git commit -m "A summary of the commit > > A paragraph describing what changed and its impact."
All pull requests are reviewed with ❤️ by PullRequest. The GitHub user persona will be displayed as "pullrequest (bot)" but the written contents are from a human software engineer. You can respond to these comments as if they were any other GitHub user. More here.
Start reading our code, and you'll get the hang of it. We optimize for readability:
- We use prettier for code styling. Don't worry about tabs vs spaces, or how to indent your code.
- We use ESlint for all other coding standards. We try to be consistent and helpful.
- This is open source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers, the goal is to make the ride as smooth as possible.
Local development configuration is pretty snappy. Here's how to get set up:
- Install/use node >=16.0.0
- Run
yarn link
from project root - Run
cd docs-site && yarn link react-datepicker
- Run
yarn install
from project root - Run
yarn build
from project root (at least the first time, this will get you thedist
directory that holds the code that will be linked to) - Run
yarn start
from project root - Open new terminal window
- After each JS change run
yarn build:js
in project root - After each SCSS change run
yarn run css:dev && yarn run css:modules:dev
in project root