adds header to uncompressed dists

This commit is contained in:
Francisco Dans 2015-07-30 16:58:17 +02:00
parent 4744ccd661
commit df99c918d1

View File

@ -5,12 +5,17 @@ var headerString = "/**\n"
headerString += "Torque " + packageJSON.version + "\n";
headerString += packageJSON.description + "\n";
headerString += "https://github.com/cartodb/torque";
headerString += "\n\n";
fs.readFile("LICENSE.txt", 'utf8', function(err, data) {
headerString += data;
headerString += "\n**/\n\n\n";
fs.readFile("dist/torque.uncompressed.js", 'utf8', function(err, torque) {
headerString += torque;
if(!err){
var torqueString = headerString + torque;
fs.writeFile("dist/torque.uncompressed.js", headerString);
}
});
fs.readFile("dist/torque.full.uncompressed.js", 'utf8', function(err, torque) {
if(!err){
var torqueString = headerString + torque;
fs.writeFile("dist/torque.full.uncompressed.js", headerString);
}
});