Skip to content

Commit 409c244

Browse files
committed
scripts
1 parent 57c8f43 commit 409c244

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

composer.json

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,27 @@
3737
}
3838
},
3939
"scripts": {
40+
"setup": [
41+
"composer install",
42+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
43+
"@php artisan key:generate",
44+
"@php artisan migrate --force",
45+
"npm install",
46+
"npm run build"
47+
],
48+
"dev": [
49+
"Composer\\Config::disableProcessTimeout",
50+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others"
51+
],
52+
"dev:ssr": [
53+
"npm run build:ssr",
54+
"Composer\\Config::disableProcessTimeout",
55+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"php artisan inertia:start-ssr\" --names=server,queue,logs,ssr --kill-others"
56+
],
57+
"test": [
58+
"@php artisan config:clear --ansi",
59+
"@php artisan test"
60+
],
4061
"post-autoload-dump": [
4162
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
4263
"@php artisan package:discover --ansi"
@@ -52,18 +73,8 @@
5273
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
5374
"@php artisan migrate --graceful --ansi"
5475
],
55-
"dev": [
56-
"Composer\\Config::disableProcessTimeout",
57-
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others"
58-
],
59-
"dev:ssr": [
60-
"npm run build:ssr",
61-
"Composer\\Config::disableProcessTimeout",
62-
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"php artisan inertia:start-ssr\" --names=server,queue,logs,ssr --kill-others"
63-
],
64-
"test": [
65-
"@php artisan config:clear --ansi",
66-
"@php artisan test"
76+
"pre-package-uninstall": [
77+
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
6778
]
6879
},
6980
"extra": {

0 commit comments

Comments
 (0)