changed to commonjs setup
This commit is contained in:
parent
9d5ed74e6c
commit
075c71ebe4
6
dist/beautylog.node.code.js
vendored
6
dist/beautylog.node.code.js
vendored
@ -1,6 +1,6 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
var plugins = require("./beautylog.plugins");
|
||||||
var codeFunction = function (codeString, options) {
|
var codeFunction = function (codeString, options) {
|
||||||
var hlight = require("hlight");
|
|
||||||
var codeSnippet = {
|
var codeSnippet = {
|
||||||
source: codeString,
|
source: codeString,
|
||||||
highlighted: "default"
|
highlighted: "default"
|
||||||
@ -11,9 +11,9 @@ var codeFunction = function (codeString, options) {
|
|||||||
}
|
}
|
||||||
;
|
;
|
||||||
if (typeof options != "undefined") {
|
if (typeof options != "undefined") {
|
||||||
codeSnippet.highlighted = hlight(codeSnippet.source, options.language);
|
codeSnippet.highlighted = plugins.hlight(codeSnippet.source, options.language);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
module.exports = codeFunction;
|
module.exports = codeFunction;
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJlYXV0eWxvZy5ub2RlLmNvZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNENBQTRDO0FBRTVDLElBQUksWUFBWSxHQUFHLFVBQVMsVUFBVSxFQUFDLE9BQVE7SUFDM0MsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQy9CLElBQUksV0FBVyxHQUFHO1FBQ2QsTUFBTSxFQUFDLFVBQVU7UUFDakIsV0FBVyxFQUFDLFNBQVM7S0FDeEIsQ0FBQztJQUNGLEVBQUUsQ0FBQyxDQUFDLE9BQU8sVUFBVSxJQUFJLFFBQVEsQ0FBQyxDQUFBLENBQUM7UUFDL0IsT0FBTyxDQUFDLEdBQUcsQ0FBQyxzREFBc0QsQ0FBQyxDQUFDO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wiLi9iZWF1dHlsb2cucGx1Z2luc1wiKTtcbnZhciBjb2RlRnVuY3Rpb24gPSBmdW5jdGlvbihjb2RlU3RyaW5nLG9wdGlvbnM/KXtcbiAgICB2YXIgY29kZVNuaXBwZXQgPSB7XG4gICAgICAgIHNvdXJjZTpjb2RlU3RyaW5nLFxuICAgICAgICBoaWdobGlnaHRlZDpcImRlZmF1bHRcIlxuICAgIH07XG4gICAgaWYgKHR5cGVvZiBjb2RlU3RyaW5nICE9IFwic3RyaW5nXCIpe1xuICAgICAgICBjb25zb2xlLmxvZyhcImJlYXV0eWxvZy5jb2RlKCkgZXhwZWN0cyBhIHN0cmluZyBhcyBmaXJzdCBhcmd1bWVudCFcIik7XG4gICAgICAgIHJldHVybjtcbiAgICB9O1xuICAgIGlmICh0eXBlb2Ygb3B0aW9ucyAhPSBcInVuZGVmaW5lZFwiKXtcbiAgICAgICAgY29kZVNuaXBwZXQuaGlnaGxpZ2h0ZWQgPSBwbHVnaW5zLmhsaWdodChjb2RlU25pcHBldC5zb3VyY2Usb3B0aW9ucy5sYW5ndWFnZSk7XG4gICAgICAgIC8vY29uc29sZS5sb2coY29kZVNuaXBwZXQuaGlnaGxpZ2h0ZWQpXG4gICAgfVxufTtcbmV4cG9ydCA9IGNvZGVGdW5jdGlvbjsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
|
||||||
|
17
dist/beautylog.node.js
vendored
17
dist/beautylog.node.js
vendored
@ -1,6 +1,7 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
var log = require("./beautylog.node.log");
|
exports.log = require("./beautylog.node.log");
|
||||||
exports.table = require("./beautylog.node.table");
|
exports.table = require("./beautylog.node.table");
|
||||||
|
exports.code = require("./beautylog.node.code");
|
||||||
var figletModule = require("./beautylog.node.figlet");
|
var figletModule = require("./beautylog.node.figlet");
|
||||||
exports.figlet = figletModule.figlet;
|
exports.figlet = figletModule.figlet;
|
||||||
exports.figletSync = figletModule.figletSync;
|
exports.figletSync = figletModule.figletSync;
|
||||||
@ -10,7 +11,7 @@ exports.figletSync = figletModule.figletSync;
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
exports.dir = function (logText) {
|
exports.dir = function (logText) {
|
||||||
return log(logText, 'dir');
|
return exports.log(logText, 'dir');
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* logs an error to console
|
* logs an error to console
|
||||||
@ -18,7 +19,7 @@ exports.dir = function (logText) {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
exports.error = function (logText) {
|
exports.error = function (logText) {
|
||||||
return log(logText, 'error');
|
return exports.log(logText, 'error');
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* logs an info to console
|
* logs an info to console
|
||||||
@ -26,7 +27,7 @@ exports.error = function (logText) {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
exports.info = function (logText) {
|
exports.info = function (logText) {
|
||||||
return log(logText, 'info');
|
return exports.log(logText, 'info');
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* logs an 'OK!' message to console
|
* logs an 'OK!' message to console
|
||||||
@ -34,7 +35,7 @@ exports.info = function (logText) {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
exports.ok = function (logText) {
|
exports.ok = function (logText) {
|
||||||
return log(logText, 'ok');
|
return exports.log(logText, 'ok');
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* logs a success to console
|
* logs a success to console
|
||||||
@ -42,7 +43,7 @@ exports.ok = function (logText) {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
exports.success = function (logText) {
|
exports.success = function (logText) {
|
||||||
return log(logText, 'success');
|
return exports.log(logText, 'success');
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* logs a 'warn:' message to console
|
* logs a 'warn:' message to console
|
||||||
@ -50,7 +51,7 @@ exports.success = function (logText) {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
exports.warn = function (logText) {
|
exports.warn = function (logText) {
|
||||||
return log(logText, 'warn');
|
return exports.log(logText, 'warn');
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJlYXV0eWxvZy5ub2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRDQUE0QztBQUU1QyxJQUFPLEdBQUcsV0FBVyxzQkFBc0IsQ0FBQyxDQUFDO0FBQy9CLGFBQUssV0FBVyx3QkFBd0IsQ0FBQyxDQUFDO0FBRXhELElBQU8sWUFBWSxXQUFXLHlCQUF5QixDQUFDLENBQUM7QUFFOUMsY0FBTSxHQUFHLFlBQVksQ0FBQyxNQUFNLENBQUM7QUFDN0Isa0JBQVUsR0FBRyxZQUFZLENBQUMsVUFBVSxDQUFDO0FBQ2hEOzs7O0dBSUc7QUFDUSxXQUFHLEdBQUcsVUFBUyxPQUFPO0lBQzdCLE1BQU0sQ0FBQyxHQUFHLENBQUMsT0FBTyxFQUFFLEtBQUssQ0FBQyxDQUFDO0FBQy9CLENBQUMsQ0FBQztBQUdGOzs7O0dBSUc7QUFDUSxhQUFLLEdBQUcsVUFBUyxPQUFPO0lBQy9CLE1BQU0sQ0FBQyxHQUFHLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBQ2pDLENBQUMsQ0FBQztBQUVGOzs7O0dBSUc7QUFDUSxZQUFJLEdBQUcsVUFBUyxPQUFPO0lBQzlCLE1BQU0sQ0FBQyxHQUFHLENBQUMsT0FBTyxFQUFFLE1BQU0sQ0FBQyxDQUFDO0FBQ2hDLENBQUMsQ0FBQztBQUVGOzs7O0dBSUc7QUFDUSxVQUFFLEdBQUcsVUFBUyxPQUFPO0lBQzVCLE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cnJvclxuICogQHJldHVybnMge2Jvb2xlYW59XG4gKi9cbmV4cG9ydCBsZXQgd2FybiA9IGZ1bmN0aW9uKGxvZ1RleHQpIHtcbiAgICByZXR1cm4gbG9nKGxvZ1RleHQsICd3YXJuJyk7XG59OyJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
|
||||||
|
5
dist/beautylog.plugins.js
vendored
5
dist/beautylog.plugins.js
vendored
@ -9,9 +9,10 @@ if (plugins.smartenv.getEnv().isNode) {
|
|||||||
cliTable: require("cli-table2"),
|
cliTable: require("cli-table2"),
|
||||||
colors: require("colors"),
|
colors: require("colors"),
|
||||||
clc: require("cli-color"),
|
clc: require("cli-color"),
|
||||||
figlet: require("figlet")
|
figlet: require("figlet"),
|
||||||
|
hlight: require("hlight")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
module.exports = plugins;
|
module.exports = plugins;
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJlYXV0eWxvZy5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRDQUE0QztBQUU1QyxJQUFJLE9BQU8sR0FBTztJQUNkLE1BQU0sRUFBRSxPQUFPLENBQUMsUUFBUSxDQUFDO0lBQ3pCLFFBQVEsRUFBRSxPQUFPLENBQUMsVUFBVSxDQUFDO0lBQzdCLENBQUMsRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDO0NBQ2xCLENBQUM7QUFDRixFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLE1BQU0sRUFBRSxDQUFDLE1BQU0sQ0FBQyxDQUFBLENBQUM7SUFDbEMsT0FBTyxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLE9BQU8sRUFBQztRQUNwQyxRQUFRLEVBQUcsT0FBTyxDQUFDLFlBQVksQ0FBQztRQUNoQyxNQUFNLEVBQUUsT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4gICAgICAgIGNvbG9yczogcmVxdWlyZShcImNvbG9yc1wiKSxcbiAgICAgICAgY2xjOiByZXF1aXJlKFwiY2xpLWNvbG9yXCIpLFxuICAgICAgICBmaWdsZXQ6IHJlcXVpcmUoXCJmaWdsZXRcIiksXG4gICAgICAgIGhsaWdodDogcmVxdWlyZShcImhsaWdodFwiKVxuICAgIH0pO1xufVxuZXhwb3J0ID0gcGx1Z2luczsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
|
||||||
|
39
index.d.ts
vendored
39
index.d.ts
vendored
@ -1,39 +0,0 @@
|
|||||||
/// <reference path="ts/typings/main.d.ts" />
|
|
||||||
declare module BeautylogPlugins {
|
|
||||||
var init: () => any;
|
|
||||||
}
|
|
||||||
declare var tableHelpers: {
|
|
||||||
makeRow: (cellCounterArg?: number, colorArg?: string) => any[];
|
|
||||||
};
|
|
||||||
declare class ConsoleTable {
|
|
||||||
tableHead: string[];
|
|
||||||
rows: any;
|
|
||||||
type: string;
|
|
||||||
constructor(tableTypeArg: string, tableHeadArrayArg?: string[]);
|
|
||||||
push(row: string[]): void;
|
|
||||||
print(): void;
|
|
||||||
}
|
|
||||||
declare module BeautylogNode {
|
|
||||||
function init(): any;
|
|
||||||
}
|
|
||||||
declare module BeautylogNodeLog {
|
|
||||||
var init: () => (logText?: string, logType?: string) => boolean;
|
|
||||||
}
|
|
||||||
declare module BeautylogNodeCode {
|
|
||||||
var init: () => (codeString: any, options?: any) => void;
|
|
||||||
}
|
|
||||||
declare module BeautylogNodeTable {
|
|
||||||
var cliTable: any;
|
|
||||||
function init(): any;
|
|
||||||
}
|
|
||||||
declare module BeautylogNodeFiglet {
|
|
||||||
var figlet: (textArg: string, optionsArg?: any) => any;
|
|
||||||
var figletSync: (textArg: string, optionsArg?: any) => boolean;
|
|
||||||
}
|
|
||||||
declare module BeautylogBrowser {
|
|
||||||
function init(): any;
|
|
||||||
}
|
|
||||||
declare module BeautylogPromiseChain {
|
|
||||||
}
|
|
||||||
declare var plugins: any;
|
|
||||||
declare var beautylog: any;
|
|
@ -37,7 +37,7 @@
|
|||||||
"hlight": "0.0.8",
|
"hlight": "0.0.8",
|
||||||
"lodash": "^4.5.1",
|
"lodash": "^4.5.1",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"smartenv": "1.0.8"
|
"smartenv": "1.0.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"easyserve": "0.0.5",
|
"easyserve": "0.0.5",
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,IAAI,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACnC,IAAI,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAEvC,QAAQ,CAAC,WAAW,EAAC;IACjB,QAAQ,CAAC,uBAAuB,EAAC;QAC7B,EAAE,CAAC,sBAAsB,EAAC;YACtB,SAAS,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,uDAAuD,EAAC;YACvD,SAAS,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;YACvE,SAAS,CAAC,GAAG,CAAC,0DAA0D,EAAC,KAAK,CAAC,CAAC;YAChF,SAAS,CAAC,GAAG,CAAC,4DAA4D,EAAC,OAAO,CAAC,CAAC;YACpF,SAAS,CAAC,GAAG,CAAC,2DAA2D,EAAC,MAAM,CAAC,CAAC;YAClF,SAAS,CAAC,GAAG,CAAC,yDAAyD,EAAC,IAAI,CAAC,CAAC;YAC9E,SAAS,CAAC,GAAG,CAAC,8DAA8D,EAAC,SAAS,CAAC,CAAC;YACxF,SAAS,CAAC,GAAG,CAAC,2DAA2D,EAAC,MAAM,CAAC,CAAC;QACtF,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QA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CAAC,IAAI,CAAC,CAAC,KAAK,EAAC,MAAM,EAAC,OAAO,CAAC,CAAC,CAAC;gBACxC,UAAU,CAAC,KAAK,EAAE,CAAC;YACvB,CAAC,CAAC,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,SAAS,EAAC;QACf,EAAE,CAAC,8CAA8C,EAAC,UAAS,IAAI;YAC3D,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAC,EAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,QAAQ,EAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5E,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,aAAa,EAAC;QACnB,EAAE,CAAC,8CAA8C,EAAC;YAC9C,SAAS,CAAC,UAAU,CAAC,OAAO,EAAC,EAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,CAAC,CAAC;QAClE,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,EAAC;QACb,EAAE,CAAC,uBAAuB,EAAC;YACvB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACpB,SAAS,CAAC,IAAI,CACV,oEAAoE,EACpE;gBACI,QAAQ,EAAC,YAAY;aACxB,CACJ,CAAC;QACN,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAC"}
|
@ -1,6 +1,6 @@
|
|||||||
/// <reference path="../ts/typings/main.d.ts" />
|
/// <reference path="../ts/typings/main.d.ts" />
|
||||||
var smartenv = require("smartenv");
|
var smartenv = require("smartenv");
|
||||||
var beautylog = require('../index.js');
|
var beautylog = require('../dist/index.js');
|
||||||
|
|
||||||
describe("beautylog",function(){
|
describe("beautylog",function(){
|
||||||
describe(".log(message,logtype)",function(){
|
describe(".log(message,logtype)",function(){
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
|
||||||
|
import plugins = require("./beautylog.plugins");
|
||||||
var codeFunction = function(codeString,options?){
|
var codeFunction = function(codeString,options?){
|
||||||
let hlight = require("hlight");
|
|
||||||
var codeSnippet = {
|
var codeSnippet = {
|
||||||
source:codeString,
|
source:codeString,
|
||||||
highlighted:"default"
|
highlighted:"default"
|
||||||
@ -11,7 +11,7 @@ var codeFunction = function(codeString,options?){
|
|||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
if (typeof options != "undefined"){
|
if (typeof options != "undefined"){
|
||||||
codeSnippet.highlighted = hlight(codeSnippet.source,options.language);
|
codeSnippet.highlighted = plugins.hlight(codeSnippet.source,options.language);
|
||||||
//console.log(codeSnippet.highlighted)
|
//console.log(codeSnippet.highlighted)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
|
|
||||||
import log = require("./beautylog.node.log");
|
export import log = require("./beautylog.node.log");
|
||||||
export import table = require("./beautylog.node.table");
|
export import table = require("./beautylog.node.table");
|
||||||
import code = require("./beautylog.node.code");
|
export import code = require("./beautylog.node.code");
|
||||||
import figletModule = require("./beautylog.node.figlet");
|
import figletModule = require("./beautylog.node.figlet");
|
||||||
|
|
||||||
export let figlet = figletModule.figlet;
|
export let figlet = figletModule.figlet;
|
||||||
|
@ -10,7 +10,8 @@ if (plugins.smartenv.getEnv().isNode){
|
|||||||
cliTable: require("cli-table2"),
|
cliTable: require("cli-table2"),
|
||||||
colors: require("colors"),
|
colors: require("colors"),
|
||||||
clc: require("cli-color"),
|
clc: require("cli-color"),
|
||||||
figlet: require("figlet")
|
figlet: require("figlet"),
|
||||||
|
hlight: require("hlight")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
export = plugins;
|
export = plugins;
|
Loading…
Reference in New Issue
Block a user