Thank you for considering contributing to React Cron Field! This document provides guidelines and instructions for contributing to the project.
Please be respectful and considerate of others when contributing to this project. We aim to foster an inclusive and welcoming community.
There are many ways to contribute to React Cron Field:
- Reporting Bugs: If you find a bug, please create an issue with a detailed description of the problem, steps to reproduce, and your environment.
- Suggesting Enhancements: If you have ideas for new features or improvements, please create an issue to discuss them.
- Pull Requests: If you'd like to contribute code, please submit a pull request with your changes.
To set up the project for local development:
-
Clone the repository:
git clone https://github.com/yourusername/react-cron-field.git cd react-cron-field -
Install dependencies:
npm install # or yarn install # or pnpm install
-
Start the development server:
npm run dev # or yarn dev # or pnpm dev
-
Run Storybook to see the components in action:
npm run storybook # or yarn storybook # or pnpm storybook
The project is structured as follows:
src/: Source codecomponents/: React componentsui/: UI components (buttons, inputs, etc.)- Other components specific to the cron field
lib/: Utility functions and helpersstories/: Storybook stories
docs/: Documentationscripts/: Build and utility scripts
This project uses ESLint and Prettier for code formatting. Please ensure your code follows the project's style guidelines by running:
npm run lint
# or
yarn lint
# or
pnpm lintThis project is written in TypeScript. Please ensure all new code includes proper type definitions.
Please write tests for your changes. You can run the tests with:
npm run test
# or
yarn test
# or
pnpm testIf you're adding new features or making significant changes, please update the documentation accordingly. The documentation is written in Markdown and is located in the docs/ directory.
- Fork the repository and create a new branch for your changes.
- Make your changes and ensure they pass all tests and lint checks.
- Update the documentation if necessary.
- Submit a pull request with a clear description of your changes.
- Wait for a maintainer to review your pull request.
The release process is handled by the maintainers. If you're a maintainer, here's how to release a new version:
- Update the version number in
package.jsonaccording to Semantic Versioning. - Update the CHANGELOG.md file with the changes in the new version.
- Create a new release on GitHub with release notes.
- Publish the new version to npm:
npm publish # or yarn publish # or pnpm publish
By contributing to React Cron Field, you agree that your contributions will be licensed under the project's MIT License.
If you have any questions about contributing, please create an issue or contact the maintainers.
Thank you for your contributions!