Contributing to TubeBay
Thank you for your interest in contributing to TubeBay! This guide will help you set up a local development environment.
Getting Started
Prerequisites
- PHP 7.4+
- Composer
- Node.js 18+ and npm
- WordPress local environment (LocalWP, DevKinsta, Lando, etc.)
Setup
- Fork the TubeBay repository on GitHub.
- Clone your fork locally:bash
git clone https://github.com/wpanchorbay/tubebay.git cd tubebay - Install PHP dependencies:bash
composer install - Install JS dependencies and build assets:bash
npm install npm run build
Development Workflow
Admin UI (React)
The admin interface is located in the src/ directory and built with Vite.
- Run
npm run devfor hot-module reloading. - All styles are built with Tailwind CSS.
Backend (PHP)
- Follow WordPress Coding Standards.
- Prefix all global functions and classes with
tubebay_or use theTubeBay\\namespace.
Documentation
Documentation is built with VitePress and located in the docs/ folder.
- Run
cd docs && npm run docs:devto preview changes.
Submitting Pull Requests
- Create a new branch for each feature or bugfix.
- Ensure your code follows the project's coding standards.
- Update documentation if you add new features or change existing ones.
- Provide a clear description of the changes in your PR.
Bug Reports
Found a bug or have a suggestion? Please open an issue on the GitHub Issue Tracker.
Thank you for helping make TubeBay better! 🚀