Skip to content

Commit

Permalink
build: v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
javierlopezdeancos committed Sep 29, 2021
1 parent b4fcdb9 commit e9a723c
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 29 deletions.
28 changes: 0 additions & 28 deletions dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

File renamed without changes.
27 changes: 27 additions & 0 deletions lib/cjs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.log = exports.info = exports.warn = void 0;
var warnColors = {
background: 'yellow',
text: 'black'
};
var infoColors = {
background: 'blue',
text: 'white'
};
var logColors = {
background: '#e2e2e2',
text: 'black'
};
var warn = function (label, message) {
console.warn('%c' + label, "background-color: " + warnColors.background + "; color: " + warnColors.text + "; padding: 5px; font-weight: bold;", message);
};
exports.warn = warn;
var info = function (label, message) {
console.info('%c' + label, "background-color: " + infoColors.background + "; color: " + infoColors.text + "; padding: 5px; font-weight: bold;", message);
};
exports.info = info;
var log = function (label, message) {
console.log('%c' + label, "background-color: " + logColors.background + "; color: " + logColors.text + "; padding: 5px; font-weight: bold;", message);
};
exports.log = log;
3 changes: 3 additions & 0 deletions lib/esm/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare const warn: (label: string, message: string) => void;
export declare const info: (label: string, message: string) => void;
export declare const log: (label: string, message: string) => void;
21 changes: 21 additions & 0 deletions lib/esm/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var warnColors = {
background: 'yellow',
text: 'black'
};
var infoColors = {
background: 'blue',
text: 'white'
};
var logColors = {
background: '#e2e2e2',
text: 'black'
};
export var warn = function (label, message) {
console.warn('%c' + label, "background-color: " + warnColors.background + "; color: " + warnColors.text + "; padding: 5px; font-weight: bold;", message);
};
export var info = function (label, message) {
console.info('%c' + label, "background-color: " + infoColors.background + "; color: " + infoColors.text + "; padding: 5px; font-weight: bold;", message);
};
export var log = function (label, message) {
console.log('%c' + label, "background-color: " + logColors.background + "; color: " + logColors.text + "; padding: 5px; font-weight: bold;", message);
};

0 comments on commit e9a723c

Please sign in to comment.