Esempio n. 1
0
 public static function checkIfNeedCompile($source, $dest)
 {
     $needCompile = !$dest->readable;
     $imports = File::scanFiles($source->dir, '\\.js$', true);
     if (!$needCompile and $imports) {
         foreach ($imports as $file) {
             if ($file->modified > $dest->modified) {
                 $needCompile = true;
                 break;
             }
         }
     }
     return $needCompile;
 }