smartlog-destination-local/ts/beautylog.plugins.ts
2016-02-11 04:04:49 +01:00

19 lines
550 B
TypeScript

/// <reference path="./index.ts" />
module BeautylogPlugins {
var plugins:any = {};
export var init = function(){
plugins = {
lodash: require("lodash"),
smartenv: require("smartenv"),
q: require("q")
};
if (plugins.smartenv.getEnv().isNode){
plugins = plugins.lodash.assign(plugins,{
colors: require("colors"),
clc: require("cli-color"),
figlet: require("figlet")
});
}
return plugins;
};
}