Skip to content

Commit

Permalink
Merge branch 'main' into update-composer
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis authored Sep 27, 2024
2 parents 9241c48 + e6e3b0f commit 303fd02
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ 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
composer review
```

The script will run the following commands:

```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 303fd02

Please sign in to comment.