2016-02-02 15:49:16 +00:00
|
|
|
/// <reference path="./typings/main.d.ts" />
|
2015-12-26 00:51:04 +00:00
|
|
|
/// <reference path="./beautylog.plugins.ts" />
|
2015-11-13 21:53:28 +00:00
|
|
|
/// <reference path="./beautylog.classes.ts" />
|
2015-12-26 00:51:04 +00:00
|
|
|
/// <reference path="./beautylog.node.ts" />
|
2016-01-30 05:19:44 +00:00
|
|
|
/// <reference path="./beautylog.node.log.ts" />
|
|
|
|
/// <reference path="./beautylog.node.code.ts" />
|
2015-12-26 00:51:04 +00:00
|
|
|
/// <reference path="./beautylog.node.table.ts" />
|
2016-02-11 03:04:49 +00:00
|
|
|
/// <reference path="./beautylog.node.figlet.ts" />
|
2015-11-13 21:53:28 +00:00
|
|
|
/// <reference path="./beautylog.browser.ts" />
|
2016-02-11 03:04:49 +00:00
|
|
|
/// <reference path="./beautylog.promisechain.ts" />
|
2015-11-01 21:00:07 +00:00
|
|
|
|
2015-12-26 00:51:04 +00:00
|
|
|
var plugins = BeautylogPlugins.init();
|
|
|
|
var beautylog = (function() {
|
|
|
|
switch (plugins.smartenv.getEnv().runtimeEnv) {
|
|
|
|
case "node":
|
|
|
|
var beautylogOs = BeautylogNode.init();
|
2015-11-01 21:00:07 +00:00
|
|
|
return beautylogOs;
|
|
|
|
break;
|
|
|
|
case "browser":
|
|
|
|
var beautylogBrowser = BeautylogBrowser.init();
|
|
|
|
return beautylogBrowser;
|
|
|
|
break;
|
|
|
|
default:
|
2015-12-26 00:51:04 +00:00
|
|
|
console.log("something is strange about the platform in which you try to use beautylog");
|
2015-11-01 21:00:07 +00:00
|
|
|
break;
|
2015-09-20 19:45:37 +00:00
|
|
|
}
|
2015-12-26 00:51:04 +00:00
|
|
|
})();
|
2015-11-01 21:00:07 +00:00
|
|
|
module.exports = beautylog;
|