Generate VERSION file in composer post install and post update

This commit is contained in:
Nabeel Shahzad
2018-02-02 22:07:52 -06:00
parent b824464c38
commit d45d23652c
2 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@@ -66,6 +66,7 @@ public/info.php
local.conf.php
config.php
VERSION
# Error Logs
error_log

View File

@@ -97,12 +97,14 @@
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall"
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan phpvms:version --write > VERSION"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta"
"php artisan ide-helper:meta",
"php artisan phpvms:version --write > VERSION"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",