Running PINT (linter)
./vendor/bin/pint --config vendor/apsg/coding-standards/pint.json
Test suite
./vendor/bin/pest --parallel
For tests to work one must prepare test database (call it cbp_test
) and migrate and seed the DB:
php artisan migrate --database=testing
php artisan db:seed --database=testing
Build assets (vite watch)
npm run dev
Serve the project:
php artisan serve
- Add new local database called
cbp_wp
and import mysql dump from Wordpress into it. - Set local envs:
DB_DATABASE_WP=cbp_wp
FILESYSTEM_DISK=wp_local
- Run
php artisan wp:refresh
. WARNING - this will take down all db tables. It will fresh migrate them, seed and import data fromcbp_wp
database. - Enjoy