Skip to content

Commit

Permalink
Switch to picocolors (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Feb 9, 2022
1 parent 8bf0405 commit 1fa3c20
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
8 changes: 4 additions & 4 deletions lib/reporters.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

const path = require('path');
const process = require('process');
const chalk = require('chalk');
const picocolors = require('picocolors');

// Default Grunt reporter
function defaultReporter(result) {
const out = result.map(message => {
return `${chalk.cyan(message.file)} ` +
chalk.red('[') + chalk.yellow(`L${message.lastLine}`) +
chalk.red(':') + chalk.yellow(`C${message.lastColumn}`) + chalk.red('] ') +
return `${picocolors.cyan(message.file)} ` +
picocolors.red('[') + picocolors.yellow(`L${message.lastLine}`) +
picocolors.red(':') + picocolors.yellow(`C${message.lastColumn}`) + picocolors.red('] ') +
message.message;
});

Expand Down
26 changes: 18 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"async": "^3.2.3",
"chalk": "^4.1.2",
"picocolors": "^1.0.0",
"vnu-jar": "21.10.12"
},
"devDependencies": {
Expand Down

0 comments on commit 1fa3c20

Please sign in to comment.