Skip to content

Commit 3a832bd

Browse files
raw(scripts): enhance setup and testing scripts for improved development workflow
1 parent a72fe5c commit 3a832bd

1 file changed

Lines changed: 27 additions & 13 deletions

File tree

composer.json

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,36 @@
5050
}
5151
},
5252
"scripts": {
53+
"setup": [
54+
"composer install",
55+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
56+
"@php artisan key:generate",
57+
"@php artisan migrate --force",
58+
"npm install",
59+
"npm run build"
60+
],
61+
"dev": [
62+
"Composer\\Config::disableProcessTimeout",
63+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fdba74\" \"php artisan serve --no-reload\" \"php artisan queue:listen --tries=1\" \"npm run dev\" \"php artisan reverb:start\" --names='server,queue,vite,reverb'"
64+
],
65+
"dev:ssr": [
66+
"npm run build:ssr",
67+
"Composer\\Config::disableProcessTimeout",
68+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve --no-reload\" \"php artisan queue:listen --tries=1\" \"php artisan inertia:start-ssr\" \"php artisan reverb:start\" --names=server,queue,logs,ssr,reverb --kill-others"
69+
],
70+
"test": [
71+
"@php artisan config:clear --ansi",
72+
"@php artisan test"
73+
],
5374
"post-autoload-dump": [
5475
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
5576
"@php artisan package:discover --ansi"
5677
],
5778
"post-update-cmd": [
58-
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
79+
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
80+
"@php artisan boost:update --ansi",
81+
"@php artisan ide-helper:generate",
82+
"@php artisan ide-helper:meta"
5983
],
6084
"post-root-package-install": [
6185
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
@@ -65,18 +89,8 @@
6589
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
6690
"@php artisan migrate --graceful --ansi"
6791
],
68-
"dev": [
69-
"Composer\\Config::disableProcessTimeout",
70-
"npx concurrently -c \"#93c5fd,#c4b5fd,#fdba74\" \"php artisan serve --no-reload\" \"php artisan queue:listen --tries=1\" \"npm run dev\" \"php artisan reverb:start\" --names='server,queue,vite,reverb'"
71-
],
72-
"dev:ssr": [
73-
"npm run build:ssr",
74-
"Composer\\Config::disableProcessTimeout",
75-
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve --no-reload\" \"php artisan queue:listen --tries=1\" \"php artisan inertia:start-ssr\" \"php artisan reverb:start\" --names=server,queue,logs,ssr,reverb --kill-others"
76-
],
77-
"test": [
78-
"@php artisan config:clear --ansi",
79-
"@php artisan test"
92+
"pre-package-uninstall": [
93+
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
8094
]
8195
},
8296
"extra": {

0 commit comments

Comments
 (0)