JSDOC/Packer.vala
authorAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:18:04 +0000 (17:18 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Oct 2015 09:18:04 +0000 (17:18 +0800)
JSDOC/Packer.vala

index a9c9442..81b99da 100644 (file)
@@ -1,16 +1,4 @@
-// <script type="text/javascript">
-const XObject         = imports.XObject.XObject;
-const File            = imports.File.File;
-
-const TextStream      = imports.JSDOC.TextStream.TextStream ;
-const TokenReader     = imports.TokenReader.TokenReader;
-const ScopeParser     = imports.ScopeParser.ScopeParser;
-const TokenStream     = imports.TokenStream.TokenStream;
-const CompressWhite   = imports.CompressWhite.CompressWhite;
-const Collapse        = imports.Collapse.Collapse;
-
-const GLib = imports.gi.GLib;
-const Gio = imports.gi.Gio;
 /**
  * @namespace JSDOC
  * @class  Packer
@@ -22,18 +10,18 @@ const Gio = imports.gi.Gio;
  * Usage:
  * <code>
  *
-Packer = imports['JSDOC/Packer.js'].Packer;
-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", // merged with translation
-                                                       // and no compression
-    translateJSON: "/tmp/translate.json",
-    
+var x = new  JSON.Packer();
+x.files = an array of files
+x.srcfiles = array of files (that list other files...) << not supported?
+x.target = "output.pathname.js"
+x.debugTarget = "output.pathname.debug.js"
+
+
+x.debugTranslateTarget : "/tmp/output.translate.js" << this used to be the single vs double quotes.. we may not use it in future..
+x.translateJSON: "/tmp/translate.json",
     
-);
+     
 x.packFiles(
     "/location/of/temp_batch_dir", 
     "/location/of/output-compacted-file.js",