smartlog-destination-local/ts/beautylog.plugins.ts

19 lines
550 B
TypeScript
Raw Normal View History

2015-12-26 00:51:04 +00:00
/// <reference path="./index.ts" />
module BeautylogPlugins {
2016-02-11 03:04:49 +00:00
var plugins:any = {};
2015-12-26 00:51:04 +00:00
export var init = function(){
2016-02-11 03:04:49 +00:00
plugins = {
lodash: require("lodash"),
smartenv: require("smartenv"),
q: require("q")
2015-12-26 00:51:04 +00:00
};
2016-02-11 03:04:49 +00:00
if (plugins.smartenv.getEnv().isNode){
plugins = plugins.lodash.assign(plugins,{
colors: require("colors"),
clc: require("cli-color"),
figlet: require("figlet")
});
}
2015-12-26 00:51:04 +00:00
return plugins;
};
}