Skip to content

Latest commit

Β 

History

History
68 lines (43 loc) Β· 1.82 KB

File metadata and controls

68 lines (43 loc) Β· 1.82 KB

Contributing

πŸ‘πŸŽ‰ First off, thanks for taking the time to contribute! πŸŽ‰πŸ‘

When contributing to this repository, please first discuss the change you wish to make via issue before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

General Guidelines

  • Before starting to work on something, please open an issue first
  • If adding a new feature, write the corresponding test
  • Ensure that nothing get broke. You can use the playground for that
  • If applicable, update the documentation
  • Use prettier before committing 😭
  • When solving a bug, please provide the steps to reproduce it(codesandbox or stackblitz are our best friends for that)
  • Tchill πŸ‘Œ

Setup

Pre-requisites

  • Node: ^18.0.0
  • Yarn

Install

Clone the repository and create a local branch:

git clone https://github.com/fkhadra/react-toastify.git
cd react-toastify

git checkout -b my-branch

Install dependencies:

pnpm install

This is a pnpm workspace β€” the playground and the use-notification-center addon are workspace packages wired to the root via workspace:*, so no extra linking step is needed.

Developing

# launch the playground
pnpm start

# Run tests πŸ’©
pnpm test

# Prettify all the things
pnpm prettier

Playground dir

The playground let you test your changes, it's like the demo of react-toastify. Most of the time you don't need to modify it unless you add new features.

Src

  • toast: Contain the exposed api (toast.success...).

License

By contributing, you agree that your contributions will be licensed under its MIT License.