Last active
September 14, 2023 20:04
-
-
Save SebKay/a29e44666676624caece4928b8e5d817 to your computer and use it in GitHub Desktop.
Laravel Composer scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"build:dev": [ | |
"composer install", | |
"@artisan:build", | |
"@assets:build" | |
], | |
"build:prod": [ | |
"composer install --no-interaction --prefer-dist --optimize-autoloader", | |
"@artisan:build", | |
"@assets:build" | |
], | |
"lint": [ | |
"./vendor/bin/pint --test" | |
], | |
"fix": [ | |
"./vendor/bin/pint" | |
], | |
"test": [ | |
"./vendor/bin/pest --parallel --stop-on-failure" | |
], | |
"test:coverage": [ | |
"XDEBUG_MODE=coverage ./vendor/bin/pest --parallel --stop-on-failure --coverage --min=85" | |
], | |
"artisan:build": [ | |
"@php artisan horizon:terminate", | |
"@php artisan horizon:publish", | |
"@php artisan cache:clear", | |
"@php artisan queue:restart" | |
], | |
"assets:build": [ | |
"bun install", | |
"bun run build" | |
], | |
"post-autoload-dump": [ | |
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", | |
"@php artisan package:discover --ansi" | |
], | |
"post-update-cmd": [ | |
"@php artisan vendor:publish --tag=laravel-assets --ansi --force", | |
"@php artisan horizon:publish --ansi" | |
], | |
"post-root-package-install": [ | |
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" | |
], | |
"post-create-project-cmd": [ | |
"@php artisan key:generate --ansi" | |
] | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment