/** * Execute the console command. * * @return mixed */ public function handle(ComposerCommandProcessor $composer, NpmCommandProcessor $npm) { $installDevDependencies = !$this->option('no-dev'); $dependencyType = 'production'; if ($installDevDependencies) { $dependencyType = 'development'; } $this->info('Installing ' . $dependencyType . ' composer dependencies...'); $composer->executeInstall($installDevDependencies); $this->info('Installing ' . $dependencyType . ' npm dependencies (used by Laravel Elixir)...'); $npm->executeInstall($installDevDependencies); }
/** * Execute the console command. * * @return mixed */ public function handle(NpmCommandProcessor $npmCommandProcessor) { $installDevDependencies = !$this->option('no-dev'); $npmCommandProcessor->executeInstall($installDevDependencies); }
public function testNoDevDependenciesCommandStringIsBuilt() { $commandProcessor = new NpmCommandProcessor(); $this->assertEquals($this->expectedNoDevCommandString, $commandProcessor->buildCommandString(false)); }