adds header to uncompressed dists
This commit is contained in:
parent
4744ccd661
commit
df99c918d1
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user