Contributing
Thank you for your interest in contributing to Console! This document provides guidelines for contributing.
Development Setup
- Clone the repository
bash
git clone https://github.com/shakcho/console-logger.git
cd konsole- Install dependencies
bash
npm install- Start development
bash
# Run the library in dev mode
npm run dev
# Run the docs site
npm run docs:devProject Structure
konsole/
├── src/
│ ├── index.ts # Entry point with exports
│ └── Konsole.ts # Main implementation
├── docs/ # VitePress documentation
├── dist/ # Build output (generated)
├── package.json
├── tsconfig.json
└── vite.config.tsBuilding
bash
# Build the library
npm run build
# Build the docs
npm run docs:buildPull Request Process
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run
npm run buildto ensure the build passes - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Code Style
- Use TypeScript for all source code
- Follow existing code patterns
- Add JSDoc comments for public APIs
- Keep the library dependency-free
Commit Messages
Use clear, descriptive commit messages:
feat: add new method for Xfix: resolve issue with Ydocs: update getting started guiderefactor: improve Z implementation
Reporting Issues
When reporting issues, please include:
- Console version
- Browser/Node.js version
- Steps to reproduce
- Expected vs actual behavior
- Code samples if applicable
Feature Requests
Feature requests are welcome! Please describe:
- The problem you're trying to solve
- Your proposed solution
- Any alternatives you've considered
License
By contributing, you agree that your contributions will be licensed under the MIT License.