index.js
function logStage(stage) {
        if (!spinner) {
            spinner = ora({
                color: 'green',
                text: chalk.green(defaults.text)
            }).info();
        }
        if (!stage || (lastStage && lastStage !== stage)) {
            spinner.succeed(chalk.grey(lastStage));
        }
        if (stage) {
            spinner.start(stage);
        }
    }
function logStage(stage) {
        if (!spinner) {
            spinner = ora({
                color: 'green',
                text: chalk.green(defaults.text)
            }).info();
        }
        if (!stage || (lastStage && lastStage !== stage)) {
            spinner.succeed(chalk.grey(lastStage));
        }
        if (stage) {
            spinner.start(stage);
        }
    }
function logStage ( stage ) { if ( ! spinner ) { spinner = ora ( { color : 'green' , text : chalk . green ( defaults . text ) } ) . info ( ) ; } if ( ! stage || ( lastStage && lastStage !== stage ) ) { spinner . succeed ( chalk . grey ( lastStage ) ) ; } if ( stage ) { spinner . start ( stage ) ; } }
output stage message
output stage message