コード例 #1
0
ファイル: Bower.php プロジェクト: budgeit/composer-builder
 /**
  * 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
ファイル: Grunt.php プロジェクト: budgeit/composer-builder
 /**
  * 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());
 }