protected static function _compile($srcFile, $distFile) { if (copy($srcFile->getPathname(), $distFile->getPathname())) { return Shell::run('coffee --compile --no-header --bare ' . $distFile->getPathname()); } return false; }
protected static function _compile($srcFile, $distFile) { $command = 'lessc ' . $srcFile->getPathname() . ' > ' . $distFile->getPathname(); if (Shell::run($command) === true) { return self::_urlCompile($distFile->getPathname(), $srcFile->getPath()); } return false; }
protected static function _compile($srcFile, $distFile) { $command = 'scss --style expanded --no-cache --sourcemap=none ' . $srcFile->getPathname() . ' ' . $distFile->getPathname(); if (Shell::run($command) === true) { return self::_urlCompile($distFile->getPathname(), $srcFile->getPath()); } return false; }
protected static function _uglify($srcFiles, $distFilePath) { return Shell::run('uglifycss ' . implode(' ', $srcFiles) . ' > ' . $distFilePath); }