Example #1
0
 protected static function _compile($srcFile, $distFile)
 {
     if (copy($srcFile->getPathname(), $distFile->getPathname())) {
         return Shell::run('coffee --compile --no-header --bare ' . $distFile->getPathname());
     }
     return false;
 }
Example #2
0
 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;
 }
Example #3
0
 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;
 }
Example #4
0
 protected static function _uglify($srcFiles, $distFilePath)
 {
     return Shell::run('uglifycss ' . implode(' ', $srcFiles) . ' > ' . $distFilePath);
 }