mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
install and create-project now default to dev mode (use --no-dev for production installs)
This commit is contained in:
parent
7b72ce1b51
commit
22c7d4119f
4 changed files with 11 additions and 15 deletions
|
@ -33,8 +33,8 @@ class InstallCommand extends Command
|
|||
new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),
|
||||
new InputOption('prefer-dist', null, InputOption::VALUE_NONE, 'Forces installation from package dist even for dev versions.'),
|
||||
new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
|
||||
new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of require-dev packages.'),
|
||||
new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables installation of require-dev packages (enabled by default, only present for sanity).'),
|
||||
new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of require-dev packages (enabled by default, only present for BC).'),
|
||||
new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables installation of require-dev packages.'),
|
||||
new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'Disables all custom installers.'),
|
||||
new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
|
||||
new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
|
||||
|
@ -85,7 +85,7 @@ EOT
|
|||
->setVerbose($input->getOption('verbose'))
|
||||
->setPreferSource($preferSource)
|
||||
->setPreferDist($preferDist)
|
||||
->setDevMode($input->getOption('dev'))
|
||||
->setDevMode(!$input->getOption('no-dev'))
|
||||
->setRunScripts(!$input->getOption('no-scripts'))
|
||||
->setOptimizeAutoloader($input->getOption('optimize-autoloader'))
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue