Thank you for your interest in contributing to React Cyclic Slider! This document provides guidelines and instructions for contributing to this project.
-
Fork the repository and clone your fork:
git clone https://github.com/YOUR_USERNAME/react-cyclic-slider.git cd react-cyclic-slider -
Install dependencies:
npm install
-
Start the development server:
npm start
This will run Vite and serve the demo application at http://localhost:5173/react-cyclic-slider/
We use Vitest for testing. You can run tests in different ways:
# Run tests once
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage# Build the demo app
npm run build
# Build the library
npm run build:libWe use ESLint for linting. Our configuration is in .eslintrc.cjs.
src/components/- Component source codesrc/theme/- CSS theme filessrc/- Demo application
-
Create a new branch for your feature or bugfix:
git checkout -b feature/your-feature-name
-
Make your changes and commit them using descriptive commit messages
-
Push changes to your fork:
git push origin feature/your-feature-name
-
Open a pull request against the
masterbranch
The maintainers will handle the release process, which includes:
- Merging approved PRs
- Updating version in package.json
- Building and publishing to npm
- Deploying demo to GitHub Pages
By contributing to React Cyclic Slider, you agree that your contributions will be licensed under the project's MIT license.