Пример #1
0
 /**
  * Run this installer for the package
  *
  * @param PackageWrapper $package
  * @param bool $isDev
  * @throws Exception if an exception occurs during execution
  */
 public function install(PackageWrapper $package, $isDev)
 {
     $args = ['install'];
     if (!$isDev) {
         $args[] = '--production';
     }
     $this->execute('bower', $args, $this->io, $package->getPath());
 }
Пример #2
0
 /**
  * Run this build tool for this package
  *
  * @param PackageWrapper $package
  * @param bool $isDev
  */
 public function build(PackageWrapper $package, $isDev)
 {
     $this->execute('grunt', [], $this->io, $package->getPath());
 }