for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\Assets\Pipes\Init;
use Arcanedev\Assets\Helpers\Stub;
use Closure;
use Illuminate\Support\Facades\File;
/**
* Class CopyYarnRcFile
*
* @package Arcanedev\Assets\Pipes\Init
* @author ARCANEDEV <[email protected]>
*/
class CopyYarnRcFile extends AbstractPipe
{
/* -----------------------------------------------------------------
| Main Method
| -----------------------------------------------------------------
* @param array $passable
* @param Closure $next
* @return mixed
public function handle(array $passable, Closure $next)
File::copy(Stub::path('init/yarnrc.stub'), base_path('.yarnrc'));
return $next($passable);
}