Merge pull request 'DX audit and fix (PHP)' (#7) from agent/dx-audit-and-fix--laravel-php-package into dev
Reviewed-on: #7
This commit is contained in:
commit
ef054c16a5
15 changed files with 43 additions and 4 deletions
12
CLAUDE.md
12
CLAUDE.md
|
|
@ -15,10 +15,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|||
|
||||
```bash
|
||||
# Tests
|
||||
./vendor/bin/phpunit # All tests
|
||||
./vendor/bin/phpunit --testsuite=Unit # Unit only
|
||||
./vendor/bin/phpunit --testsuite=Feature # Feature only
|
||||
./vendor/bin/phpunit --filter="test name" # Single test
|
||||
composer test # All tests
|
||||
composer test -- --testsuite=Unit # Unit only
|
||||
composer test -- --testsuite=Feature # Feature only
|
||||
composer test -- --filter="test name" # Single test
|
||||
|
||||
# Code style (PSR-12 via Laravel Pint)
|
||||
composer lint # Fix code style
|
||||
./vendor/bin/pint --dirty # Format changed files only
|
||||
|
||||
# Frontend
|
||||
npm run dev # Vite dev server
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Foundation\Configuration\Exceptions;
|
||||
use Illuminate\Foundation\Configuration\Middleware;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
App\Providers\AppServiceProvider::class,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
"core/php-admin": "@dev"
|
||||
},
|
||||
"require-dev": {
|
||||
"laravel/pint": "^1.0",
|
||||
"phpunit/phpunit": "^11.5"
|
||||
},
|
||||
"autoload": {
|
||||
|
|
@ -30,6 +31,10 @@
|
|||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phpunit",
|
||||
"lint": "pint"
|
||||
},
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"providers": [
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
|
|
|||
6
pint.json
Normal file
6
pint.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"preset": "laravel",
|
||||
"rules": {
|
||||
"declare_strict_types": true
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// API routes are registered via Core modules
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
// Console commands are registered via Core modules
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* UseCase: Developer Tools (Basic Flow)
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue