Skip to content

Commit 0ede40b

Browse files
Merge pull request #29 from CodeWithDennis/add-composer-review
Add composer review script for codebase checks
2 parents e5d5bf6 + fe7bbbd commit 0ede40b

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ DEFAULT_USER_EMAIL="admin@example.com"
3535
DEFAULT_USER_PASSWORD="password"
3636
```
3737

38+
## Composer Review
39+
A composer script `composer review` is available to run the following commands to ensure the codebase is clean and ready for deployment:
40+
```bash
41+
./vendor/bin/pest --parallel
42+
./vendor/bin/pint
43+
./vendor/bin/phpstan analyse
44+
```
3845
## [Helpers](https://laravel-news.com/creating-helpers)
3946
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.
4047

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
}
5050
},
5151
"scripts": {
52+
"pest": "./vendor/bin/pest --parallel",
53+
"pint": "./vendor/bin/pint",
54+
"phpstan": "./vendor/bin/phpstan analyse",
5255
"post-autoload-dump": [
5356
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
5457
"@php artisan package:discover --ansi",
@@ -65,6 +68,11 @@
6568
"@php artisan key:generate --ansi",
6669
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
6770
"@php artisan migrate --graceful --ansi"
71+
],
72+
"review": [
73+
"@pint",
74+
"@pest",
75+
"@phpstan"
6876
]
6977
},
7078
"extra": {

0 commit comments

Comments
 (0)