29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
/// <reference path="./typings/main.d.ts" />
|
|
/// <reference path="./beautylog.plugins.ts" />
|
|
/// <reference path="./beautylog.classes.ts" />
|
|
/// <reference path="./beautylog.node.ts" />
|
|
/// <reference path="./beautylog.node.log.ts" />
|
|
/// <reference path="./beautylog.node.code.ts" />
|
|
/// <reference path="./beautylog.node.table.ts" />
|
|
/// <reference path="./beautylog.node.figlet.ts" />
|
|
/// <reference path="./beautylog.browser.ts" />
|
|
/// <reference path="./beautylog.promisechain.ts" />
|
|
|
|
var plugins = BeautylogPlugins.init();
|
|
var beautylog = (function() {
|
|
switch (plugins.smartenv.getEnv().runtimeEnv) {
|
|
case "node":
|
|
var beautylogOs = BeautylogNode.init();
|
|
return beautylogOs;
|
|
break;
|
|
case "browser":
|
|
var beautylogBrowser = BeautylogBrowser.init();
|
|
return beautylogBrowser;
|
|
break;
|
|
default:
|
|
console.log("something is strange about the platform in which you try to use beautylog");
|
|
break;
|
|
}
|
|
})();
|
|
module.exports = beautylog;
|