diff --git a/CLAUDE.md b/CLAUDE.md index 450b223..35c627e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,12 +9,13 @@ This is the **Core Admin Package** (`lthn/php-admin`) - an admin panel and servi ## Commands ```bash -php artisan serve # Laravel dev server -npm run dev # Vite dev server (Tailwind v4) -npm run build # Production asset build -./vendor/bin/pint --dirty # Format changed files only -./vendor/bin/pest # Run all tests -./vendor/bin/pest --filter=SearchTest # Run specific test +composer test # Run all tests (Pest) +composer test -- --filter=SearchTest # Run specific test +composer lint # Fix code style (Pint) +./vendor/bin/pint --dirty # Format changed files only +php artisan serve # Laravel dev server +npm run dev # Vite dev server (Tailwind v4) +npm run build # Production asset build ``` CI matrix: PHP 8.2, 8.3, 8.4. diff --git a/composer.json b/composer.json index c8d46ee..7062f18 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,10 @@ ] } }, + "scripts": { + "test": "vendor/bin/pest", + "lint": "vendor/bin/pint" + }, "minimum-stability": "stable", "prefer-stable": true, "replace": { diff --git a/phpunit.xml b/phpunit.xml index 61c031c..28b553c 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -11,6 +11,10 @@ tests/Feature + + src/Search/Tests + src/Mod/Hub/Tests + diff --git a/src/Mod/Hub/Migrations/2026_01_11_000001_create_honeypot_hits_table.php b/src/Mod/Hub/Migrations/2026_01_11_000001_create_honeypot_hits_table.php index 75b5bce..967dcae 100644 --- a/src/Mod/Hub/Migrations/2026_01_11_000001_create_honeypot_hits_table.php +++ b/src/Mod/Hub/Migrations/2026_01_11_000001_create_honeypot_hits_table.php @@ -1,5 +1,7 @@