Brick
Brick is a WordPress starter plugin that makes for easy and fast plugin creation.
Prerequisites
Basic installation
- PHP >= 8.0
- Composer
Testing
Installation
- Create a new project using Composer:
composer create-project achttienvijftien/brick {{name-of-your-plugin}}
- Follow the steps in INITIAL-SETUP.md.
- Good to go!
Testing
Setup
- Install Composer packages:
composer install
- Install the correct Node.js version:
nvm install
- Install NPM packages:
yarn
- Start wp-env
yarn wp-env start
- Check if test suite is ready:
yarn test
- When test result is OK you're ready to start writing tests in test/php