Getting Started
Prerequisites
- Node.js 20+
- pnpm 10+
- Docker (for wp-env)
- PHP 8.2+ (for IDE support)
Clone and Setup
git clone https://github.com/wpappointments/wpappointments.gitcd wpappointmentspnpm run initializeThis installs dependencies, starts a WordPress environment, and builds all packages.
Development Server
pnpm run devOpens a WordPress site at http://localhost:8888 with hot reload. Admin credentials: admin / password.
Project Structure
wpappointments/├── packages/│ ├── components/ # @wpappointments/components│ └── data/ # @wpappointments/data├── plugins/│ └── wpappointments/ # Main plugin├── premium/ # Premium addons (private submodule)└── tools/testing/ # Test utilities and demo pluginsRunning Tests
pnpm test # PHP tests (Pest)pnpm -C plugins/wpappointments test:e2e # Playwright E2ELinting
pnpm run lint # JS + PHPpnpm run check-types # TypeScript