JSDOC/Packer.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 18 Aug 2011 08:46:58 +0000 (16:46 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 18 Aug 2011 08:46:58 +0000 (16:46 +0800)
JSDOC/Packer.js

index 45ec11f..5442d84 100644 (file)
@@ -28,6 +28,7 @@ var x = new  Packer({
     files : [ "/location/of/file1.js", "/location/of/file2.js", ... ],
     target : "/tmp/output.js",
     debugTarget : "/tmp/output.debug.js", // merged file without compression.
+    debugTranslateTarget : "/tmp/output.translate.js"
     translateJSON: "/tmp/translate.json",
     
     
@@ -233,6 +234,8 @@ Packer.prototype = {
                 continue;
             }
            
+            // debug Target
+            
             if (this.debugTarget) {
                 File.append(this.debugTarget, File.read(file));
             }
@@ -254,16 +257,7 @@ Packer.prototype = {
                 print("compare : " + mt + "=>" + ot);
                 if (mt >= ot) {
                     continue;
-                    /*
-                    // then the min'files time is > than original..
-                    var str = File.read(minfile);
-                    print("using MIN FILE  "+ minfile);
-                    if (str.length) {
-                        File.append(outpath, str + "\n");
-                    }
                     
-                    continue;
-                    */
                 }
                 
             }