Skip to content

Commit

Permalink
Added custom reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcaloon committed May 14, 2020
1 parent 79d90ce commit c533f4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const chalk = require( 'chalk' );

/**
* Custom reporter.
*/
exports.reporter = {
info: msg => console.log( `${chalk.blue( 'info' )} [groq] ${msg}` ),
warn: msg => console.warn( `[groq] ${msg}` ),
success: msg => console.log( `${chalk.green( 'success' )} [groq] ${msg}` ),
error: msg => console.log( `${chalk.hex( '#730202' ).bold( `${msg} \n` ) }` ),
}

0 comments on commit c533f4f

Please sign in to comment.