ship setup script for cloning down new projects
This commit is contained in:
@@ -50,6 +50,15 @@
|
|||||||
"pre-package-uninstall": [
|
"pre-package-uninstall": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
|
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
|
||||||
],
|
],
|
||||||
|
"setup": [
|
||||||
|
"composer install",
|
||||||
|
"@php -r \"! file_exists('.env') || copy('.env.example', '.env');\"",
|
||||||
|
"@php artisan key:generate",
|
||||||
|
"@php artisan migrate --force",
|
||||||
|
"@php artisan db:seed --force",
|
||||||
|
"npm install",
|
||||||
|
"npm run build"
|
||||||
|
],
|
||||||
"dev": [
|
"dev": [
|
||||||
"Composer\\Config::disableProcessTimeout",
|
"Composer\\Config::disableProcessTimeout",
|
||||||
"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"
|
"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"
|
||||||
|
|||||||
Reference in New Issue
Block a user