print("write " + Options.target+"/symbols/" +symbol.alias+'.' + Options.publishExt);
// dump out a
- IO.saveFile(publish.conf.outDir+"json/", symbol.alias+'.json' , publish.jsonRender(symbol));
+
+ this.publishJSON(Options.target+"/json/", symbol.alias+'.json', symbol)
+
}
fileindexTemplate = filesIndex = files = null;
}
- publishJSON = function(data)
+ publishJSON = function(file, data)
{
// what we need to output to be usefull...
// a) props..
props : props,
events: events
};
- return JSON.encode(ret);
+ File.write(file, JSON.stringify(ret, null, 2 ));
// b) methods