diff --git a/BuildServer/compress-old-reports.ts b/BuildServer/compress-old-reports.ts deleted file mode 100644 index 1d7b811..0000000 --- a/BuildServer/compress-old-reports.ts +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; - -const fs = require("fs"); -const path = require("path"); -const zlib = require("zlib"); -const glob = require("glob"); -const async = require("async"); -const settings = require("./settings"); - -const streamsNumber = 100; - -glob("**\\report.json", { "cwd": settings.releasepath }, (globErr, files) => { - if (globErr) { - return console.log(globErr); - } - - return async.parallelLimit(files.map((file) => (callback) => { - const originalPath = path.join(settings.releasepath, file); - const newPath = `${originalPath}.gz`; - - console.log(file); - fs.createReadStream(originalPath) - .pipe(zlib.createGzip()) - .pipe(fs.createWriteStream(newPath)) - .on("error", callback) - .on("finish", () => { - fs.unlink(originalPath, callback); - }); - }), streamsNumber, (err) => { - if (err) { - console.log(err); - } - - console.log("Done"); - }); -}); diff --git a/BuildServer/tsconfig.json b/BuildServer/tsconfig.json index c99c2ba..b8f33ad 100644 --- a/BuildServer/tsconfig.json +++ b/BuildServer/tsconfig.json @@ -9,9 +9,7 @@ ] }, "include": [ - "app.ts", - "global.d.ts", - "settings.ts", + "*.ts", "lib/**/*.ts", "routes/**/*.ts" ],