Skip to content

Commit 07408e8

Browse files
authored
Update composer.json (#126)
* Ship setup script * Add pre-package-uninstall script to composer.json
1 parent 2dca266 commit 07408e8

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

composer.json

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@
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+
"test": [
54+
"@php artisan config:clear --ansi",
55+
"@php artisan test"
56+
],
4157
"post-autoload-dump": [
4258
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
4359
"@php artisan package:discover --ansi"
@@ -53,13 +69,8 @@
5369
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
5470
"@php artisan migrate --graceful --ansi"
5571
],
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-
"test": [
61-
"@php artisan config:clear --ansi",
62-
"@php artisan test"
72+
"pre-package-uninstall": [
73+
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
6374
]
6475
},
6576
"extra": {

0 commit comments

Comments
 (0)