Running PINT (linter)
./vendor/bin/pint --config vendor/apsg/coding-standards/pint.jsonTest suite
./vendor/bin/pest --parallelFor 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=testingBuild assets (vite watch)
npm run devServe the project:
php artisan serve- Add new local database called
cbp_wpand 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_wpdatabase. - Enjoy