Skip to content

Commit

Permalink
Merge pull request #29 from CodeWithDennis/add-composer-review
Browse files Browse the repository at this point in the history
Add composer review script for codebase checks
  • Loading branch information
CodeWithDennis authored Sep 25, 2024
2 parents e5d5bf6 + fe7bbbd commit 0ede40b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ DEFAULT_USER_EMAIL="[email protected]"
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.

Expand Down
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit 0ede40b

Please sign in to comment.