Thanks for your interest in contributing to CartFlow! 🎉
This guide will help you set up your environment, follow the coding style, and submit useful contributions.
-
- Node.js (v18 or higher recommended)
- npm (v9 or higher) or yarn
- Git
-
-
Fork the repository
Click the "Fork" button on the GitHub repo. -
Clone your fork
git clone https://github.com/nassiry/cartflow.git cd cartflow
-
npm installnpm run lint— Analyze code for potential issues using ESLint.npm run lint:fix— Automatically fix linting errors where possible.npm run format— Format your codebase with Prettier for consistent styling.npm run build— Compile and bundle the project into thedist/directory.
- Linting: We use ESLint with strict rules. Run
npm run lintbefore committing. - Formatting: Prettier enforces consistent styling. Run
npm run formator configure your editor to format on save. - Git Commit Messages: Follow Conventional Commits.
npm run lint npm run format
Use a code editor with ESLint & Prettier plugins for auto-formatting on save.
If your contribution includes changes to public APIs or core functionality, you may need to update the online demo:
- Demo Location: The demo lives in
./docs/. - Testing Locally: Run the demo locally to verify changes:
npm run docs # Starts docs server at http://localhost:3000 - Update Demo Files:
- Modify
docs/index.htmlor relevant demo scripts if APIs change. - Add/remove examples to reflect new features or breaking changes.
- Modify
- Keep PRs focused: Address one issue or feature per PR.
- Test your changes: Ensure
npm run lintandnpm test(if applicable) pass. - Update documentation: If you change APIs or behavior, update the relevant docs.
- Rebase your branch: Sync with
upstream/mainbefore submitting:git fetch upstream git rebase upstream/main
- For questions, open a GitHub Discussion.
- Found a bug? File an issue.
We'd love to see how you're using this library in your projects! Here's how you can share:
-
Add to our showcase: Submit a PR adding your project to our
SHOWCASE.md. -
See SHOWCASE.md to share how you're using this library.
- [Your Project Name](https://yourlink.com)
Brief description ("Used for real-time in our ecommerce APP.")We appreciate your time and effort! Every contribution, big or small, makes a difference. Happy coding!