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, with two entry points: src/admin.tsx (Channel Library / Manager / Onboarding) and src/settings.tsx (Settings tabs).
- Run
npm startfor the@wordpress/scriptsdev server, ornpm run buildfor a production build. npm run start:legacy/npm run build:legacytarget older environments via a hand-rolled webpack/babel config.
Backend (PHP)
- Follow WordPress Coding Standards.
- Prefix all global functions and classes with
tubebay_or use theTubeBay\\namespace. - Run
npm run lint(PHPCS) ornpm run lint-fix(PHPCBF) before submitting a PR — there is no PHPUnit suite in the free plugin.
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! 🚀