menthol / scripts-dev
Laravel Scripts-Dev, execute dev scripts on development environment.
Installs: 210
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/menthol/scripts-dev
Requires
- php: >=5.3.7
- illuminate/console: 4.x
- illuminate/support: 4.*
- symfony/process: 2.*
This package is not auto-updated.
Last update: 2022-02-01 12:38:49 UTC
README
This packages execute all commands added into composer scripts-dev directive.
Installation
Require this package in your composer.json and run composer update (or run composer require menthol/scripts-dev:dev-master
directly):
"menthol/scripts-dev": "dev-master"
After updating composer, add the ServiceProvider to the providers array in app/config/app.php
'Menthol\ScriptsDev\ScriptsDevServiceProvider',
Publish the config.
php artisan config:publish menthol/scripts-dev
Configure your local dev environment by adding 'dev' => true,
to your local package config file.
You can configure your composer.json.
In each scripts step add php artisan scripts-dev {step}
"scripts":{
"post-update-cmd":[
"php artisan clear-compiled",
"php artisan optimize",
"php artisan scripts-dev post-update-cmd"
]
},
Now you can add your dev commands
"scripts-dev":{
"post-update-cmd":[
"php artisan ide-helper:generate"
]
},