Updated composer scripts

This commit is contained in:
Graham Campbell 2015-12-24 15:50:28 +00:00
parent 3fdf5dc5f7
commit cfbf1945dd

View File

@ -63,30 +63,28 @@
} }
}, },
"scripts": { "scripts": {
"pre-install-cmd": [ "post-root-package-install": [
"rm -f compiled.php config.php routes.php services.json" "php -r \"copy('.env.example', '.env');\"",
"php artisan key:generate"
],
"post-create-project-cmd": [
"php artisan key:generate"
], ],
"post-install-cmd": [ "post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize --force", "php artisan optimize --force",
"php artisan config:cache", "php artisan config:cache",
"php artisan route:cache", "php artisan route:cache",
"chmod -R 755 storage" "chmod -R 755 storage"
], ],
"pre-update-cmd": [ "pre-update-cmd": [
"rm -f compiled.php config.php routes.php services.json" "php artisan clear-compiled"
], ],
"post-update-cmd": [ "post-update-cmd": [
"php artisan optimize --force", "php artisan optimize --force",
"php artisan config:cache", "php artisan config:cache",
"php artisan route:cache", "php artisan route:cache",
"chmod -R 755 storage" "chmod -R 755 storage"
],
"post-create-project-cmd": [
"php -r \"copy('.env.example', '.env');\"",
"php artisan key:generate"
],
"test": [
"phpunit"
] ]
}, },
"config": { "config": {