JsCompile.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 22 Jul 2011 07:29:24 +0000 (15:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 22 Jul 2011 07:29:24 +0000 (15:29 +0800)
JsCompile.php

index 6d0a8ef..a6b3679 100644 (file)
@@ -63,6 +63,32 @@ class Pman_Core_JsCompile  extends Pman
                 break;
         }
         exit;
+    }
+    
+    
+    
+    function packScript($basedir, $files, $output, $output_path)
+    {
+        // this outputs <script tags..>
+        // either for just the original files,
+        // or the compressed version.
+        // first expand files..
+        
+        $arfiles = array();
+        foreach($files as $f) {
+            if (!is_dir($f)) {
+                $arfiles[] = $basedir .'/' $f;
+                continue;
+            }
+            foreach(scandir($src) as $f) {
+        }
+        
+        
+        
+        
+        
+        
+        
     }
     
     /**
@@ -74,8 +100,7 @@ class Pman_Core_JsCompile  extends Pman
     function pack($files, $output)
     {
         
-        
-        
+         
         $o = HTML_FlexyFramework::get()->Pman_Core;
         
         if (empty($o['jspacker']) || !file_exists($o['jspacker'].'/pack.js')) {