UNPKG

runok

Version:

NPM scripts on steroids! Replace your scripts with pure JS

39 lines (38 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.yell = exports.say = exports.createOutput = void 0; const signale_1 = require("signale"); const chalk_1 = require("chalk"); function createOutput(task) { const options = { scope: task.toUpperCase(), types: { error: { label: '', }, success: { label: '', }, info: { label: '', }, fatal: { label: '', } } }; const output = new signale_1.Signale(options); output.started = function (output = '') { this.info(`${chalk_1.default.bold(output)}`); }; return output; } exports.createOutput = createOutput; function say(...args) { console.log('💬 ' + chalk_1.default.green(args.join(' '))); } exports.say = say; function yell(...args) { console.log('🗯 ' + chalk_1.default.green(args.join(' ').toUpperCase())); } exports.yell = yell;