option('production'); return $this; } /** * @param null|string $pathToNpm * * @throws \Robo\Exception\TaskException */ public function __construct($pathToNpm = null) { $this->command = $pathToNpm; if (!$this->command) { $this->command = $this->findExecutable('npm'); } if (!$this->command) { throw new TaskException(__CLASS__, "Npm executable not found."); } } /** * @return string */ public function getCommand() { return "{$this->command} {$this->action}{$this->arguments}"; } }