26 lines
2.6 KiB
JavaScript
26 lines
2.6 KiB
JavaScript
|
"use strict";
|
||
|
/* eslint-disable no-console */
|
||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
|
};
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.success = exports.error = exports.warning = exports.info = void 0;
|
||
|
const chalk_1 = __importDefault(require("chalk"));
|
||
|
const symbols_1 = __importDefault(require("../reporter/symbols"));
|
||
|
function info(message) {
|
||
|
console.log(`\n${message}`);
|
||
|
}
|
||
|
exports.info = info;
|
||
|
function warning(message) {
|
||
|
console.log(`\n${chalk_1.default.yellowBright(message)}`);
|
||
|
}
|
||
|
exports.warning = warning;
|
||
|
function error(message) {
|
||
|
console.log(chalk_1.default.redBright(`\n${symbols_1.default.err} ${message}`));
|
||
|
}
|
||
|
exports.error = error;
|
||
|
function success(message) {
|
||
|
console.log(chalk_1.default.greenBright(`\n${symbols_1.default.ok} ${message}`));
|
||
|
}
|
||
|
exports.success = success;
|
||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWF0dGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kYXNoYm9hcmQvZm9ybWF0dGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0JBQStCOzs7Ozs7QUFFL0Isa0RBQTBCO0FBQzFCLGtFQUFvRDtBQUVwRCxTQUFnQixJQUFJLENBQUUsT0FBZTtJQUNqQyxPQUFPLENBQUMsR0FBRyxDQUFDLEtBQUssT0FBTyxFQUFFLENBQUMsQ0FBQztBQUNoQyxDQUFDO0FBRkQsb0JBRUM7QUFFRCxTQUFnQixPQUFPLENBQUUsT0FBZTtJQUNwQyxPQUFPLENBQUMsR0FBRyxDQUFDLEtBQUssZUFBSyxDQUFDLFlBQVksQ0FBQyxPQUFPLENB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