switch to beautycolor

This commit is contained in:
Philipp Kunz 2017-01-21 18:40:40 +01:00
parent 643a302aeb
commit bd0790fec6
11 changed files with 59 additions and 60 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
import 'typings-global';
import * as beautycolor from 'beautycolor';
import * as lodash from 'lodash';
import * as smartenv from 'smartenv';
import * as q from 'smartq';
import * as clc from 'cli-color';
declare let figlet: any;
import * as loggly from 'loggly';
declare let ora: any;
export { lodash, smartenv, q, clc, figlet, loggly, ora };
export { beautycolor, lodash, smartenv, q, figlet, loggly, ora };

View File

@ -1,17 +1,17 @@
"use strict";
require("typings-global");
const beautycolor = require("beautycolor");
exports.beautycolor = beautycolor;
const lodash = require("lodash");
exports.lodash = lodash;
const smartenv = require("smartenv");
exports.smartenv = smartenv;
const q = require("smartq");
exports.q = q;
const clc = require("cli-color");
exports.clc = clc;
let figlet = require('figlet');
exports.figlet = figlet;
const loggly = require("loggly");
exports.loggly = loggly;
let ora = require('ora');
exports.ora = ora;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBRXhCLGlDQUFnQztBQVM1Qix3QkFBTTtBQVJWLHFDQUFvQztBQVNoQyw0QkFBUTtBQVJaLDRCQUEyQjtBQVN2QixjQUFDO0FBUkwsaUNBQWdDO0FBUzVCLGtCQUFHO0FBUlAsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLHdCQUFNO0FBUlYsaUNBQWdDO0FBUzVCLHdCQUFNO0FBUlYsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBU3BCLGtCQUFHIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXVCO0FBRXZCLDJDQUEwQztBQVN0QyxrQ0FBVztBQVJmLGlDQUFnQztBQVM1Qix3QkFBTTtBQVJWLHFDQUFvQztBQVNoQyw0QkFBUTtBQVJaLDRCQUEyQjtBQVN2QixjQUFDO0FBUkwsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLHdCQUFNO0FBUlYsaUNBQWdDO0FBUzVCLHdCQUFNO0FBUlYsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBU3BCLGtCQUFHIn0=

View File

@ -0,0 +1,4 @@
/**
* registers a remote
*/
export declare let registerRemote: any;

View File

@ -1 +1,2 @@
"use strict";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnJlZ2lzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5bG9nLnJlZ2lzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==

View File

@ -33,7 +33,7 @@
"dependencies": {
"@types/lodash": "4.x.x",
"@types/loggly": "^1.1.30",
"cli-color": "^1.1.0",
"beautycolor": "^1.0.2",
"figlet": "^1.2.0",
"lodash": "^4.17.4",
"loggly": "^1.1.1",
@ -44,6 +44,8 @@
},
"devDependencies": {
"npmts-g": "^6.0.0",
"qenv": "^1.1.3",
"smartchai": "^1.0.1",
"typings-test": "^1.0.3"
}
}

View File

@ -85,4 +85,4 @@ describe('beautylog', function () {
});
});
});
//# source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FBQ2IsRUFBRSxDQUFDLHNDQUFzQyxFQUFDO1lBQ3RDLFNBQVMsQ0FBQyxJQUFJLENBQUMsd0RBQXdELENBQUMsQ0FBQTtRQUM1RSxDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFDLENBQUEifQ==

View File

@ -1,6 +1,8 @@
import 'typings-test'
import beautylog = require('../dist/index')
import * as qenv from 'qenv'
describe('beautylog',function(){
describe('.log(message)',function(){
it('should print a blue Dir message',function(){

View File

@ -23,54 +23,47 @@ export let internalLog = function (logType: string = 'normal', logText: string =
}
}
let xC = {
black: 232,
blue: 39,
cyan: 87,
green: 112,
red: 196,
white: 231
}
let coloredString = plugins.beautycolor.coloredString
let localBl = {
dirPrefix: plugins.clc.bgXterm(xC.blue).xterm(xC.white).bold(' DIR ') + ' ',
errorPrefix: plugins.clc.bgXterm(xC.red)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.red).bold(' Error: ') + ' ',
infoPrefix: plugins.clc.bgXterm(198).xterm(231).bold(' INFO ') + ' ',
logPrefix: plugins.clc.bgXterm(xC.cyan)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.cyan).bold(' Log: ') + ' ',
okPrefix: plugins.clc.bgXterm(xC.green)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.green).bold(' OK! ') + ' ',
successPrefix: plugins.clc.bgXterm(xC.green)(' ') + plugins.clc.bgXterm(xC.black).xterm(xC.green).bold(' Success: ') + ' ',
warnPrefix: plugins.clc.bgYellow(' ') + plugins.clc.bgBlack.yellow.bold(' Warn: ') + ' '
dirPrefix: coloredString(' DIR ', 'white', 'blue') + ' ',
errorPrefix: coloredString(' ', 'red','red') + coloredString(' Error: ', 'red', 'black') + ' ',
infoPrefix: coloredString(' INFO ', 'white', 'pink') + ' ',
logPrefix: coloredString(' ', 'white', 'cyan') + coloredString(' Log: ', 'cyan', 'black') + ' ',
okPrefix: coloredString(' ', 'green', 'green') + coloredString(' OK! ', 'green', 'black') + ' ',
successPrefix: coloredString(' ', 'green', 'green') + coloredString(' Success: ', 'green', 'black') + ' ',
warnPrefix: coloredString(' ', 'orange', 'orange') + coloredString(' Warn: ', 'orange', 'black') + ' '
}
export let logNode = function (logType: string, logText: string) {
try {
switch (logType) {
case 'dir':
logText = localBl.dirPrefix + plugins.clc.xterm(xC.blue)(logText)
logText = localBl.dirPrefix + coloredString(logText, 'blue')
break
case 'error':
logText = localBl.errorPrefix + plugins.clc.xterm(xC.red).bold(logText)
logText = localBl.errorPrefix + coloredString(logText, 'red')
break
case 'info':
logText = localBl.infoPrefix + plugins.clc.xterm(198)(logText)
logText = localBl.infoPrefix + coloredString(logText, 'pink')
break
case 'normal':
logText = localBl.logPrefix + plugins.clc.xterm(xC.cyan).bold(logText)
logText = localBl.logPrefix + coloredString(logText, 'cyan')
break
case 'ok':
logText = localBl.okPrefix + plugins.clc.bold(logText)
logText = localBl.okPrefix + logText
break
case 'success':
logText = localBl.successPrefix + plugins.clc.xterm(xC.green).bold(logText)
logText = localBl.successPrefix + coloredString(logText, 'green')
break
case 'warn':
logText = localBl.warnPrefix + plugins.clc.bold(logText)
logText = localBl.warnPrefix + coloredString(logText, 'orange')
break
case 'log':
logText = localBl.logPrefix + plugins.clc.blue.bold(logText)
logText = localBl.logPrefix + coloredString(logText, 'cyan')
break
default:
plugins.clc.blue.bold(logText)
coloredString(logText, 'blue')
console.log(('unknown logType for "' + logText + '"'))
break
}
@ -86,7 +79,7 @@ export let logNode = function (logType: string, logText: string) {
let logBrowser = function (logText, logType) {
switch (logType) {
case 'dir':
logText = localBl.dirPrefix + plugins.clc.xterm(26)(logText)
logText = localBl.dirPrefix + coloredString(logText, 'blue')
break
case 'error':
logText = localBl.errorPrefix + logText.red.bold

View File

@ -1,18 +1,18 @@
import 'typings-global'
import * as beautycolor from 'beautycolor'
import * as lodash from 'lodash'
import * as smartenv from 'smartenv'
import * as q from 'smartq'
import * as clc from 'cli-color'
let figlet = require('figlet')
import * as loggly from 'loggly'
let ora = require('ora')
export {
beautycolor,
lodash,
smartenv,
q,
clc,
figlet,
loggly,
ora

View File

@ -0,0 +1,4 @@
/**
* registers a remote
*/
export let registerRemote