diff --git a/README.md b/README.md index cec82b6..fc64e6e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,13 @@ DEFAULT_USER_EMAIL="admin@example.com" DEFAULT_USER_PASSWORD="password" ``` +## Composer Review +A composer script `composer review` is available to run the following commands to ensure the codebase is clean and ready for deployment: +```bash +./vendor/bin/pest --parallel +./vendor/bin/pint +./vendor/bin/phpstan analyse +``` ## [Helpers](https://laravel-news.com/creating-helpers) I've set up a Helper file for you to use in your Laravel app. You can find it at `app\Helpers.php`. This file is ready for you to add your custom helper functions, which Composer will automatically include in your project. diff --git a/composer.json b/composer.json index e1da213..4cd5ccf 100644 --- a/composer.json +++ b/composer.json @@ -49,6 +49,9 @@ } }, "scripts": { + "pest": "./vendor/bin/pest --parallel", + "pint": "./vendor/bin/pint", + "phpstan": "./vendor/bin/phpstan analyse", "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi", @@ -65,6 +68,11 @@ "@php artisan key:generate --ansi", "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"", "@php artisan migrate --graceful --ansi" + ], + "review": [ + "@pint", + "@pest", + "@phpstan" ] }, "extra": {