throw "No Files";
}
- if cfg.
-
-
+ if (cfg.autoBuild) {
+ var version = 0;
+ this.files.forEach(function(f) {
+ version = Math.max(File.mtime(f), version);
+ });
+ var dirname = GLib.dirname(this.files[0]);
+ var outname = GLib.basename(this.files[0]);
+ this.target = dirname + '/compiled/' + outname + '-' + version + '.js';
+
+ this.translateJSON = dirname + '/compiled/_translation_.js';
+
+ }
this.timer = new Date() * 1;
* @cfg {Boolean} autoBuild - turn on autobuild feature (puts files in compiled directory,
* and enables translation toolkit.
*/
- target : '',
+ autoBuild : false,
/**
* @prop debugTarget {String} target to write files debug version to (uncompacted)- must be full path.
*/
prefix : '',
out : '', // if no target is specified - then this will contain the result
+ /**
+ * load a dependancy list -f option
+ * @param {String} srcfile sourcefile to parse
+ *
+ */
loadSourceFile : function(srcfile)
{