cleaned up

This commit is contained in:
Philipp Kunz 2015-11-24 00:19:20 +01:00
parent 5b8fce66fe
commit 0aafb76046
13 changed files with 10 additions and 255 deletions

11
.gitignore vendored
View File

@ -1,2 +1,11 @@
node_modules/
.settings/
.idea/ .idea/
node_modules
#npm devug
npm-debug.log
ts/*.js
ts/*.js.map

View File

@ -1,25 +0,0 @@
/// <reference path="./index.ts" />
var BeautylogBrowser;
(function (BeautylogBrowser) {
function init() {
var beautylogBrowser = {};
beautylogBrowser.log = function (message) {
console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;");
};
beautylogBrowser.info = function (message) {
console.log('%c Info: %c ' + message, 'background:#EC407A;color:#ffffff;', 'color:#EC407A;');
};
beautylogBrowser.ok = function (message) {
console.log('%c OK: %c ' + message, "background:#000000;color:#8BC34A;", "color:#000000;");
};
beautylogBrowser.success = function (message) {
console.log('%c Success: %c ' + message, "background:#8BC34A;color:#ffffff;", "color:#8BC34A;");
};
beautylogBrowser.warn = function (message) {
console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;");
};
return beautylogBrowser;
}
BeautylogBrowser.init = init;
})(BeautylogBrowser || (BeautylogBrowser = {}));
//# sourceMappingURL=beautylog.browser.js.map

View File

@ -1 +0,0 @@
{"version":3,"file":"beautylog.browser.js","sourceRoot":"","sources":["beautylog.browser.ts"],"names":["BeautylogBrowser","BeautylogBrowser.init"],"mappings":"AAAA,mCAAmC;AACnC,IAAO,gBAAgB,CAoBtB;AApBD,WAAO,gBAAgB,EAAC,CAAC;IACrBA;QACIC,IAAIA,gBAAgBA,GAAOA,EAAEA,CAACA;QAC9BA,gBAAgBA,CAACA,GAAGA,GAAGA,UAASA,OAAOA;YACnC,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,OAAO,EAAC,kCAAkC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,EAAEA,GAAGA,UAASA,OAAOA;YAClC,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,OAAOA,GAAGA,UAASA,OAAOA;YACvC,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAClG,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,MAAMA,CAACA,gBAAgBA,CAACA;IAC5BA,CAACA;IAlBeD,qBAAIA,OAkBnBA,CAAAA;AACLA,CAACA,EApBM,gBAAgB,KAAhB,gBAAgB,QAoBtB"}

View File

@ -1,36 +0,0 @@
/// <reference path="./index.ts" />
var ConsoleTable = (function () {
function ConsoleTable(tableType) {
switch (tableType) {
case "checks":
this.tableHead = ['Check Item:'.cyan, 'Status:'.cyan];
break;
default:
break;
}
this.rows = [];
this.type = tableType;
}
ConsoleTable.prototype.push = function (row) {
this.rows.push(row);
};
ConsoleTable.prototype.print = function () {
var table = new BeautylogOsTable.cliTable({
head: this.tableHead,
colWidths: [20, 20]
});
for (var row in this.rows) {
if (this.rows[row][1] == "success") {
this.rows[row][1] = ' '.bgGreen + ' ' + this.rows[row][1];
}
else if (this.rows[row][1] == "error") {
this.rows[row][1] = ' '.bgRed + ' ' + this.rows[row][1];
}
table.push(this.rows[row]);
}
;
console.log(table.toString());
};
return ConsoleTable;
})();
//# sourceMappingURL=beautylog.classes.js.map

View File

@ -1 +0,0 @@
{"version":3,"file":"beautylog.classes.js","sourceRoot":"","sources":["beautylog.classes.ts"],"names":["ConsoleTable","ConsoleTable.constructor","ConsoleTable.push","ConsoleTable.print"],"mappings":"AAAA,mCAAmC;AAEnC;IAIIA,sBAAYA,SAAgBA;QACxBC,MAAMA,CAACA,CAACA,SAASA,CAACA,CAACA,CAACA;YAChBA,KAAKA,QAAQA;gBACTA,IAAIA,CAACA,SAASA,GAAGA,CAACA,aAAaA,CAACA,IAAIA,EAACA,SAASA,CAACA,IAAIA,CAACA,CAACA;gBACrDA,KAAKA,CAACA;YACVA;gBACIA,KAAKA,CAACA;QACdA,CAACA;QACDA,IAAIA,CAACA,IAAIA,GAAGA,EAAEA,CAACA;QACfA,IAAIA,CAACA,IAAIA,GAAGA,SAASA,CAACA;IAC1BA,CAACA;IACDD,2BAAIA,GAAJA,UAAKA,GAAYA;QACbE,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA;IACxBA,CAACA;IACDF,4BAAKA,GAALA;QACIG,IAAIA,KAAKA,GAAGA,IAAIA,gBAAgBA,CAACA,QAAQA,CAACA;YACtCA,IAAIA,EAAEA,IAAIA,CAACA,SAASA;YACpBA,SAASA,EAAEA,CAACA,EAAEA,EAAEA,EAAEA,CAACA;SACtBA,CAACA,CAACA;QACHA,GAAGA,CAACA,CAACA,GAAGA,CAACA,GAAGA,IAAIA,IAAIA,CAACA,IAAIA,CAACA,CAAAA,CAACA;YACvBA,EAAEA,CAAAA,CAACA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,IAAIA,SAASA,CAACA,CAAAA,CAACA;gBAC/BA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,GAAGA,GAAGA,CAACA,OAAOA,GAAGA,GAAGA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,CAACA;YAC9DA,CAACA;YAACA,IAAIA,CAACA,EAAEA,CAACA,CAACA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,IAAIA,OAAOA,CAACA,CAACA,CAACA;gBACtCA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,GAAGA,GAAGA,CAACA,KAAKA,GAAGA,GAAGA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA,CAACA;YAC5DA,CAACA;YACDA,KAAKA,CAACA,IAAIA,CAACA,IAAIA,CAACA,IAAIA,CAACA,GAAGA,CAACA,CAACA,CAACA;QAC/BA,CAACA;QAAAA,CAACA;QACFA,OAAOA,CAACA,GAAGA,CAACA,KAAKA,CAACA,QAAQA,EAAEA,CAACA,CAACA;IAClCA,CAACA;IACLH,mBAACA;AAADA,CAACA,AAjCD,IAiCC"}

View File

@ -1,114 +0,0 @@
/// <reference path="./index.ts" />
var BeautylogOS;
(function (BeautylogOS) {
function init() {
var colors = require("colors");
var clc = require("cli-color");
var beautylogOS = {}; //object to append to all public facing functions
var localBl; // object to append to all private params and functions
localBl = {};
localBl.dirPrefix = clc.bgXterm(39).xterm(231).bold(' DIR ') + ' ';
localBl.errorPrefix = ' Error: '.bgRed.white.bold + ' ';
localBl.infoPrefix = clc.bgXterm(198).xterm(231).bold(' INFO ') + ' ';
localBl.normalPrefix = ' Log: '.bgCyan.white.bold + ' ';
localBl.okPrefix = ' '.bgGreen + ' OK! '.bgBlack.green.bold + ' ';
localBl.successPrefix = ' Success: '.bgGreen.white.bold + ' ';
localBl.warnPrefix = ' '.bgYellow + ' Warn: '.bgBlack.yellow.bold + ' ';
/**
*
* @param logText
* @param logType
* @returns {boolean}
*/
beautylogOS.log = function (logText, logType) {
if (logText === void 0) { logText = 'empty log'; }
if (logType === void 0) { logType = 'normal'; }
try {
switch (logType) {
case 'dir':
logText = localBl.dirPrefix + clc.xterm(26)(logText);
break;
case 'error':
logText = localBl.errorPrefix + logText.red.bold;
break;
case 'info':
logText = localBl.infoPrefix + clc.xterm(198)(logText);
break;
case 'normal':
logText = localBl.normalPrefix + logText.cyan.bold;
break;
case 'ok':
logText = localBl.okPrefix + logText.bold;
break;
case 'success':
logText = localBl.successPrefix + logText.green.bold;
break;
case 'warn':
logText = localBl.warnPrefix + logText.bold;
break;
default:
logText.blue.bold;
console.log(('unknown logType for "' + logText + '"').red.bold);
}
console.log(logText);
return true;
}
catch (error) {
console.log(localBl.errorPrefix + 'You seem to have tried logging something strange'.red.bold + error);
return false;
}
};
/**
* logs an directory to console
* @param logText
* @returns {boolean}
*/
beautylogOS.dir = function (logText) {
return beautylogOS.log(logText, 'dir');
};
/**
* logs an error to console
* @param logText
* @returns {boolean}
*/
beautylogOS.error = function (logText) {
return beautylogOS.log(logText, 'error');
};
/**
* logs an info to console
* @param logText
* @returns {boolean}
*/
beautylogOS.info = function (logText) {
return beautylogOS.log(logText, 'info');
};
/**
* logs an 'OK!' message to console
* @param logText
* @returns {boolean}
*/
beautylogOS.ok = function (logText) {
return beautylogOS.log(logText, 'ok');
};
/**
* logs a success to console
* @param logText string to log as error
* @returns {boolean}
*/
beautylogOS.success = function (logText) {
return beautylogOS.log(logText, 'success');
};
/**
* logs a 'warn:' message to console
* @param logText string to log as error
* @returns {boolean}
*/
beautylogOS.warn = function (logText) {
return beautylogOS.log(logText, 'warn');
};
beautylogOS.table = BeautylogOsTable.init();
return beautylogOS;
}
BeautylogOS.init = init;
})(BeautylogOS || (BeautylogOS = {}));
//# sourceMappingURL=beautylog.os.js.map

View File

@ -1 +0,0 @@
{"version":3,"file":"beautylog.os.js","sourceRoot":"","sources":["beautylog.os.ts"],"names":["BeautylogOS","BeautylogOS.init"],"mappings":"AAAA,mCAAmC;AACnC,IAAO,WAAW,CAyHjB;AAzHD,WAAO,WAAW,EAAC,CAAC;IAChBA;QACIC,IAAIA,MAAMA,GAAGA,OAAOA,CAACA,QAAQA,CAACA,CAACA;QAC/BA,IAAIA,GAAGA,G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;QAC5C,CAAC,CAACA;QAEFA,WAAWA,CAACA,KAAKA,GAAGA,gBAAgBA,CAACA,IAAIA,EAAEA,CAACA;QAE5CA,MAAMA,CAACA,WAAWA,CAACA;IACvBA,CAACA;IAvHeD,gBAAIA,OAuHnBA,CAAAA;AACLA,CAACA,EAzHM,WAAW,KAAX,WAAW,QAyHjB"}

View File

@ -1,15 +0,0 @@
/// <reference path="./index.ts" />
var BeautylogOsTable;
(function (BeautylogOsTable) {
function init() {
BeautylogOsTable.cliTable = require("cli-table2");
var beautylogOsTable = {};
beautylogOsTable.new = function (type) {
var newConsoleTable = new ConsoleTable(type);
return newConsoleTable;
};
return beautylogOsTable;
}
BeautylogOsTable.init = init;
})(BeautylogOsTable || (BeautylogOsTable = {}));
//# sourceMappingURL=beautylog.os.table.js.map

View File

@ -1 +0,0 @@
{"version":3,"file":"beautylog.os.table.js","sourceRoot":"","sources":["beautylog.os.table.ts"],"names":["BeautylogOsTable","BeautylogOsTable.init"],"mappings":"AAAA,mCAAmC;AACnC,IAAO,gBAAgB,CAYtB;AAZD,WAAO,gBAAgB,EAAC,CAAC;IAErBA;QACIC,yBAAQA,GAAIA,OAAOA,CAACA,YAAYA,CAACA,CAACA;QAClCA,IAAIA,gBAAgBA,GAAOA,EAAEA,CAACA;QAE9BA,gBAAgBA,CAACA,GAAGA,GAAGA,UAASA,IAAWA;YACvC,IAAI,eAAe,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;YAC7C,MAAM,CAAC,eAAe,CAAC;QAC3B,CAAC,CAACA;QACFA,MAAMA,CAACA,gBAAgBA,CAACA;IAC5BA,CAACA;IATeD,qBAAIA,OASnBA,CAAAA;AACLA,CAACA,EAZM,gBAAgB,KAAhB,gBAAgB,QAYtB"}

View File

@ -1,23 +0,0 @@
/// <reference path="./typings/tsd.d.ts" />
/// <reference path="./beautylog.classes.ts" />
/// <reference path="./beautylog.os.ts" />
/// <reference path="./beautylog.os.table.ts" />
/// <reference path="./beautylog.browser.ts" />
var beautylog = function (logPlatform) {
if (logPlatform === void 0) { logPlatform = "os"; }
switch (logPlatform) {
case "os":
var beautylogOs = BeautylogOS.init();
return beautylogOs;
break;
case "browser":
var beautylogBrowser = BeautylogBrowser.init();
return beautylogBrowser;
break;
default:
console.log("something is strage about the way you required beautylog");
break;
}
};
module.exports = beautylog;
//# sourceMappingURL=index.js.map

View File

@ -1 +0,0 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,+CAA+C;AAC/C,0CAA0C;AAC1C,gDAAgD;AAChD,+CAA+C;AAE/C,IAAI,SAAS,GAAG,UAAS,WAAyB;IAAzB,2BAAyB,GAAzB,kBAAyB;IAC9C,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;QAClB,KAAK,IAAI;YACL,IAAI,WAAW,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;YACrC,MAAM,CAAC,WAAW,CAAC;YACnB,KAAK,CAAC;QACV,KAAK,SAAS;YACV,IAAI,gBAAgB,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC;YAC/C,MAAM,CAAC,gBAAgB,CAAC;YACxB,KAAK,CAAC;QACV;YACI,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;YACxE,KAAK,CAAC;IACd,CAAC;AACL,CAAC,CAAC;AACF,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC"}

View File

@ -1,35 +0,0 @@
/// <reference path="./typings/tsd.d.ts" />
var beautyLogOs = require('./index.js')("os");
var beautyLogBrowser = require("./index.js")("browser");
console.log('*** start OS console test ***');
console.log('');
console.log('declarative function calls:');
beautyLogOs.log('beautylog.log(), with normal logText, without logType');
beautyLogOs.dir('beautylog.dir(), with normal logText, without logType');
beautyLogOs.error('beautylog.error(), with normal logText, without logType');
beautyLogOs.info('beautylog.dir(), with normal logText, without logType');
beautyLogOs.ok('beautylog.ok(), with normal logText, without logType');
beautyLogOs.success('beautylog.success(), with normal logText, without logType');
beautyLogOs.warn('beautylog.warn(), with normal logText, without logType');
console.log('');
console.log('logType String:');
beautyLogOs.log('beautylog.log(), with normal logText, without logType');
beautyLogOs.log('beautylog.log(), with normal logText, with logType "dir"', 'dir');
beautyLogOs.log('beautylog.log(), with normal logText, with logType "error"', 'error');
beautyLogOs.log('beautylog.log(), with normal logText, with logType "info"', 'info');
beautyLogOs.log('beautylog.log(), with normal logText, with logType "ok"', 'ok');
beautyLogOs.log('beautylog.log(), with normal logText, with logType "success"', 'success');
beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn');
console.log('');
console.log('*** end OS console test ***');
console.log("*** start browser console test (Might look weird in OS console and travis log...) ***");
beautyLogBrowser.log("hello");
console.log("*** end browser console test ***");
console.log("*** start table test ***");
var testTable = beautyLogOs.table.new("checks");
testTable.push(['check1', 'success']);
testTable.push(['check2', 'error']);
testTable.push(['check3', 'error']);
testTable.print();
console.log("*** end table test ***");
//# sourceMappingURL=test.js.map

View File

@ -1 +0,0 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,IAAI,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC;AAC9C,IAAI,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;AAExD,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;AAC7C,OAAO,CAAC,GAAG,CAAE,EAAE,CAAC,CAAC;AAEjB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC3C,WAAW,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;AACzE,WAAW,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;AACzE,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;AAC7E,WAAW,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAC;AAC1E,WAAW,CAAC,EAAE,CA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