UNPKG

@mansagroup/nx-gcs-remote-cache

Version:

A Google Cloud Storage distributed cache plugin for Nx

21 lines (20 loc) 777 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.logger = void 0; const chalk_1 = __importDefault(require("chalk")); function prefixFactory(colorFn) { return `${colorFn('>')} ${chalk_1.default.inverse(chalk_1.default.bold(colorFn(' NX GCS ')))}`; } const LOG_PREFIX = prefixFactory(chalk_1.default.cyan); const LOG_WARN_PREFIX = prefixFactory(chalk_1.default.yellow); exports.logger = { log(message) { console.log(`\n${LOG_PREFIX} ${chalk_1.default.bold(message)}\n`); }, warn(message) { console.log(`\n${LOG_WARN_PREFIX} ${chalk_1.default.bold(message)}\n`); }, };