Please read the text so that you understand how to conduct while contributing to this project.
tosin use SemVer for versioning.
The content of the documentation is in the docs repository.
Before submitting a pull request, please make sure the following is done:
- Fork the repository and create your branch from
master
. - If you've added code that should be tested, add tests!
- If you've changed APIs, update the documentation.
- Ensure the test suite passes (
npm test
). - Format your code with prettier (
npm run prettier
). - Make sure your code lints (
npm run lint
).
After cloning tosin, run npm i
to fetch its dependencies.
Then, you can run several commands:
npm run dev
will build cjs and es module of tosin in thelib
folder and watch for changes.npm run lint
checks the code style.npm test
runs the complete test suite.npm test -- --watch
runs an interactive test watcher.npm test <pattern>
runs tests with matching filenames.npm run build
creates the cjs and es module of tosin in thelib
folder.
Make sure that your pull request contains unit tests for any new functionality. This way we can ensure that we don't break your code in the future.
This project is licensed under the MIT License - see the LICENSE file for details.
This CONTRIBUTING.md is based on the react how-to-contribute.md file.