Skip to content

Commit cef94ee

Browse files
authored
Update composer.json (#204)
* ship setup script * Add pre-package-uninstall script to composer.json
1 parent cb93da5 commit cef94ee

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
@@ -38,6 +38,27 @@
3838
}
3939
},
4040
"scripts": {
41+
"setup": [
42+
"composer install",
43+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
44+
"@php artisan key:generate",
45+
"@php artisan migrate --force",
46+
"npm install",
47+
"npm run build"
48+
],
49+
"dev": [
50+
"Composer\\Config::disableProcessTimeout",
51+
"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"
52+
],
53+
"dev:ssr": [
54+
"npm run build:ssr",
55+
"Composer\\Config::disableProcessTimeout",
56+
"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"
57+
],
58+
"test": [
59+
"@php artisan config:clear --ansi",
60+
"@php artisan test"
61+
],
4162
"post-autoload-dump": [
4263
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
4364
"@php artisan package:discover --ansi"
@@ -53,18 +74,8 @@
5374
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
5475
"@php artisan migrate --graceful --ansi"
5576
],
56-
"dev": [
57-
"Composer\\Config::disableProcessTimeout",
58-
"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"
59-
],
60-
"dev:ssr": [
61-
"npm run build:ssr",
62-
"Composer\\Config::disableProcessTimeout",
63-
"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"
64-
],
65-
"test": [
66-
"@php artisan config:clear --ansi",
67-
"@php artisan test"
77+
"pre-package-uninstall": [
78+
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
6879
]
6980
},
7081
"extra": {

0 commit comments

Comments
 (0)