switch to beautycolor
This commit is contained in:
parent
643a302aeb
commit
bd0790fec6
45
dist/beautylog.log.helpers.js
vendored
45
dist/beautylog.log.helpers.js
vendored
File diff suppressed because one or more lines are too long
4
dist/beautylog.plugins.d.ts
vendored
4
dist/beautylog.plugins.d.ts
vendored
@ -1,9 +1,9 @@
|
|||||||
import 'typings-global';
|
import 'typings-global';
|
||||||
|
import * as beautycolor from 'beautycolor';
|
||||||
import * as lodash from 'lodash';
|
import * as lodash from 'lodash';
|
||||||
import * as smartenv from 'smartenv';
|
import * as smartenv from 'smartenv';
|
||||||
import * as q from 'smartq';
|
import * as q from 'smartq';
|
||||||
import * as clc from 'cli-color';
|
|
||||||
declare let figlet: any;
|
declare let figlet: any;
|
||||||
import * as loggly from 'loggly';
|
import * as loggly from 'loggly';
|
||||||
declare let ora: any;
|
declare let ora: any;
|
||||||
export { lodash, smartenv, q, clc, figlet, loggly, ora };
|
export { beautycolor, lodash, smartenv, q, figlet, loggly, ora };
|
||||||
|
6
dist/beautylog.plugins.js
vendored
6
dist/beautylog.plugins.js
vendored
@ -1,17 +1,17 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
require("typings-global");
|
require("typings-global");
|
||||||
|
const beautycolor = require("beautycolor");
|
||||||
|
exports.beautycolor = beautycolor;
|
||||||
const lodash = require("lodash");
|
const lodash = require("lodash");
|
||||||
exports.lodash = lodash;
|
exports.lodash = lodash;
|
||||||
const smartenv = require("smartenv");
|
const smartenv = require("smartenv");
|
||||||
exports.smartenv = smartenv;
|
exports.smartenv = smartenv;
|
||||||
const q = require("smartq");
|
const q = require("smartq");
|
||||||
exports.q = q;
|
exports.q = q;
|
||||||
const clc = require("cli-color");
|
|
||||||
exports.clc = clc;
|
|
||||||
let figlet = require('figlet');
|
let figlet = require('figlet');
|
||||||
exports.figlet = figlet;
|
exports.figlet = figlet;
|
||||||
const loggly = require("loggly");
|
const loggly = require("loggly");
|
||||||
exports.loggly = loggly;
|
exports.loggly = loggly;
|
||||||
let ora = require('ora');
|
let ora = require('ora');
|
||||||
exports.ora = ora;
|
exports.ora = ora;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBRXhCLGlDQUFnQztBQVM1Qix3QkFBTTtBQVJWLHFDQUFvQztBQVNoQyw0QkFBUTtBQVJaLDRCQUEyQjtBQVN2QixjQUFDO0FBUkwsaUNBQWdDO0FBUzVCLGtCQUFHO0FBUlAsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLHdCQUFNO0FBUlYsaUNBQWdDO0FBUzVCLHdCQUFNO0FBUlYsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBU3BCLGtCQUFHIn0=
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXVCO0FBRXZCLDJDQUEwQztBQVN0QyxrQ0FBVztBQVJmLGlDQUFnQztBQVM1Qix3QkFBTTtBQVJWLHFDQUFvQztBQVNoQyw0QkFBUTtBQVJaLDRCQUEyQjtBQVN2QixjQUFDO0FBUkwsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLHdCQUFNO0FBUlYsaUNBQWdDO0FBUzVCLHdCQUFNO0FBUlYsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBU3BCLGtCQUFHIn0=
|
4
dist/beautylog.register.d.ts
vendored
4
dist/beautylog.register.d.ts
vendored
@ -0,0 +1,4 @@
|
|||||||
|
/**
|
||||||
|
* registers a remote
|
||||||
|
*/
|
||||||
|
export declare let registerRemote: any;
|
1
dist/beautylog.register.js
vendored
1
dist/beautylog.register.js
vendored
@ -1 +1,2 @@
|
|||||||
|
"use strict";
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnJlZ2lzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5bG9nLnJlZ2lzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnJlZ2lzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5bG9nLnJlZ2lzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
@ -33,7 +33,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/lodash": "4.x.x",
|
"@types/lodash": "4.x.x",
|
||||||
"@types/loggly": "^1.1.30",
|
"@types/loggly": "^1.1.30",
|
||||||
"cli-color": "^1.1.0",
|
"beautycolor": "^1.0.2",
|
||||||
"figlet": "^1.2.0",
|
"figlet": "^1.2.0",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
"loggly": "^1.1.1",
|
"loggly": "^1.1.1",
|
||||||
@ -44,6 +44,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts-g": "^6.0.0",
|
"npmts-g": "^6.0.0",
|
||||||
|
"qenv": "^1.1.3",
|
||||||
|
"smartchai": "^1.0.1",
|
||||||
"typings-test": "^1.0.3"
|
"typings-test": "^1.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,4 +85,4 @@ describe('beautylog', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQiwyQ0FBMkM7QUFFM0MsUUFBUSxDQUFDLFdBQVcsRUFBQztJQUNqQixRQUFRLENBQUMsZUFBZSxFQUFDO1FBQ3JCLEVBQUUsQ0FBQyxpQ0FBaUMsRUFBQztZQUNqQyxTQUFTLENBQUMsR0FBRyxDQUFDLHVEQUF1RCxDQUFDLENBQUE7UUFDMUUsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDLENBQUMsQ0FBQTtJQUNGLFFBQVEsQ0FBQyxlQUFlLEVBQUM7UUFDckIsRUFBRSxDQUFDLGlDQUFpQyxFQUFDO1lBQ2pDLFNBQVMsQ0FBQyxHQUFHLENBQUMsdURBQXVELENBQUMsQ0FBQTtRQUMxRSxDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0lBQ0YsUUFBUSxDQUFDLGlCQUFpQixFQUFDO1FBQ3ZCLEVBQUUsQ0FBQyxrQ0FBa0MsRUFBQztZQUNsQyxTQUFTLENBQUMsS0FBSyxDQUFDLHlEQUF5RCxDQUFDLENBQUE7UUFDOUUsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDLENBQUMsQ0FBQTtJQUNGLFFBQVEsQ0FBQyxTQUFTLEVBQUM7UUFDZixFQUFFLENBQUMsOENBQThDLEVBQUMsVUFBUyxJQUFJO1lBQzNELFNBQVMsQ0FBQyxNQUFNLENBQUMsUUFBUSxFQUFDLEV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QUM7WUFDdkMsU0FBUyxDQUFDLE9BQU8sQ0FBQywyREFBMkQsQ0FBQyxDQUFBO1FBQ2xGLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7SUFDRixRQUFRLENBQUMsT0FBTyxFQUFDO1FBQ2IsRUFBRSxDQUFDLHNDQUFzQyxFQUFDO1lBQ3RDLFNBQVMsQ0FBQyxJQUFJLENBQUMsd0RBQXdELENBQUMsQ0FBQTtRQUM1RSxDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUEifQ==
|
@ -1,6 +1,8 @@
|
|||||||
import 'typings-test'
|
import 'typings-test'
|
||||||
import beautylog = require('../dist/index')
|
import beautylog = require('../dist/index')
|
||||||
|
|
||||||
|
import * as qenv from 'qenv'
|
||||||
|
|
||||||
describe('beautylog',function(){
|
describe('beautylog',function(){
|
||||||
describe('.log(message)',function(){
|
describe('.log(message)',function(){
|
||||||
it('should print a blue Dir message',function(){
|
it('should print a blue Dir message',function(){
|
||||||
|
@ -23,54 +23,47 @@ export let internalLog = function (logType: string = 'normal', logText: string =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let xC = {
|
let coloredString = plugins.beautycolor.coloredString
|
||||||
black: 232,
|
|
||||||
blue: 39,
|
|
||||||
cyan: 87,
|
|
||||||
green: 112,
|
|
||||||
red: 196,
|
|
||||||
white: 231
|
|
||||||
}
|
|
||||||
|
|
||||||
let localBl = {
|
let localBl = {
|
||||||
dirPrefix: plugins.clc.bgXterm(xC.blue).xterm(xC.white).bold(' DIR ') + ' ',
|
dirPrefix: coloredString(' DIR ', 'white', 'blue') + ' ',
|
||||||
errorPrefix: plugins.clc.bgXterm(xC.red)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.red).bold(' Error: ') + ' ',
|
errorPrefix: coloredString(' ', 'red','red') + coloredString(' Error: ', 'red', 'black') + ' ',
|
||||||
infoPrefix: plugins.clc.bgXterm(198).xterm(231).bold(' INFO ') + ' ',
|
infoPrefix: coloredString(' INFO ', 'white', 'pink') + ' ',
|
||||||
logPrefix: plugins.clc.bgXterm(xC.cyan)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.cyan).bold(' Log: ') + ' ',
|
logPrefix: coloredString(' ', 'white', 'cyan') + coloredString(' Log: ', 'cyan', 'black') + ' ',
|
||||||
okPrefix: plugins.clc.bgXterm(xC.green)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.green).bold(' OK! ') + ' ',
|
okPrefix: coloredString(' ', 'green', 'green') + coloredString(' OK! ', 'green', 'black') + ' ',
|
||||||
successPrefix: plugins.clc.bgXterm(xC.green)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.green).bold(' Success: ') + ' ',
|
successPrefix: coloredString(' ', 'green', 'green') + coloredString(' Success: ', 'green', 'black') + ' ',
|
||||||
warnPrefix: plugins.clc.bgYellow(' ') + plugins.clc.bgBlack.yellow.bold(' Warn: ') + ' '
|
warnPrefix: coloredString(' ', 'orange', 'orange') + coloredString(' Warn: ', 'orange', 'black') + ' '
|
||||||
}
|
}
|
||||||
|
|
||||||
export let logNode = function (logType: string, logText: string) {
|
export let logNode = function (logType: string, logText: string) {
|
||||||
try {
|
try {
|
||||||
switch (logType) {
|
switch (logType) {
|
||||||
case 'dir':
|
case 'dir':
|
||||||
logText = localBl.dirPrefix + plugins.clc.xterm(xC.blue)(logText)
|
logText = localBl.dirPrefix + coloredString(logText, 'blue')
|
||||||
break
|
break
|
||||||
case 'error':
|
case 'error':
|
||||||
logText = localBl.errorPrefix + plugins.clc.xterm(xC.red).bold(logText)
|
logText = localBl.errorPrefix + coloredString(logText, 'red')
|
||||||
break
|
break
|
||||||
case 'info':
|
case 'info':
|
||||||
logText = localBl.infoPrefix + plugins.clc.xterm(198)(logText)
|
logText = localBl.infoPrefix + coloredString(logText, 'pink')
|
||||||
break
|
break
|
||||||
case 'normal':
|
case 'normal':
|
||||||
logText = localBl.logPrefix + plugins.clc.xterm(xC.cyan).bold(logText)
|
logText = localBl.logPrefix + coloredString(logText, 'cyan')
|
||||||
break
|
break
|
||||||
case 'ok':
|
case 'ok':
|
||||||
logText = localBl.okPrefix + plugins.clc.bold(logText)
|
logText = localBl.okPrefix + logText
|
||||||
break
|
break
|
||||||
case 'success':
|
case 'success':
|
||||||
logText = localBl.successPrefix + plugins.clc.xterm(xC.green).bold(logText)
|
logText = localBl.successPrefix + coloredString(logText, 'green')
|
||||||
break
|
break
|
||||||
case 'warn':
|
case 'warn':
|
||||||
logText = localBl.warnPrefix + plugins.clc.bold(logText)
|
logText = localBl.warnPrefix + coloredString(logText, 'orange')
|
||||||
break
|
break
|
||||||
case 'log':
|
case 'log':
|
||||||
logText = localBl.logPrefix + plugins.clc.blue.bold(logText)
|
logText = localBl.logPrefix + coloredString(logText, 'cyan')
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
plugins.clc.blue.bold(logText)
|
coloredString(logText, 'blue')
|
||||||
console.log(('unknown logType for "' + logText + '"'))
|
console.log(('unknown logType for "' + logText + '"'))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -86,7 +79,7 @@ export let logNode = function (logType: string, logText: string) {
|
|||||||
let logBrowser = function (logText, logType) {
|
let logBrowser = function (logText, logType) {
|
||||||
switch (logType) {
|
switch (logType) {
|
||||||
case 'dir':
|
case 'dir':
|
||||||
logText = localBl.dirPrefix + plugins.clc.xterm(26)(logText)
|
logText = localBl.dirPrefix + coloredString(logText, 'blue')
|
||||||
break
|
break
|
||||||
case 'error':
|
case 'error':
|
||||||
logText = localBl.errorPrefix + logText.red.bold
|
logText = localBl.errorPrefix + logText.red.bold
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
import 'typings-global'
|
import 'typings-global'
|
||||||
|
|
||||||
|
import * as beautycolor from 'beautycolor'
|
||||||
import * as lodash from 'lodash'
|
import * as lodash from 'lodash'
|
||||||
import * as smartenv from 'smartenv'
|
import * as smartenv from 'smartenv'
|
||||||
import * as q from 'smartq'
|
import * as q from 'smartq'
|
||||||
import * as clc from 'cli-color'
|
|
||||||
let figlet = require('figlet')
|
let figlet = require('figlet')
|
||||||
import * as loggly from 'loggly'
|
import * as loggly from 'loggly'
|
||||||
let ora = require('ora')
|
let ora = require('ora')
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
beautycolor,
|
||||||
lodash,
|
lodash,
|
||||||
smartenv,
|
smartenv,
|
||||||
q,
|
q,
|
||||||
clc,
|
|
||||||
figlet,
|
figlet,
|
||||||
loggly,
|
loggly,
|
||||||
ora
|
ora
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
/**
|
||||||
|
* registers a remote
|
||||||
|
*/
|
||||||
|
export let registerRemote
|
Loading…
Reference in New Issue
Block a user