add header file
This commit is contained in:
parent
9dcaf60d83
commit
4744ccd661
16
lib/header.js
Normal file
16
lib/header.js
Normal file
@ -0,0 +1,16 @@
|
||||
var packageJSON = require("../package.json");
|
||||
var fs = require("fs");
|
||||
|
||||
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;
|
||||
fs.writeFile("dist/torque.uncompressed.js", headerString);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user