Comparing version 0.0.15 to 0.0.16
19
index.js
@@ -79,9 +79,14 @@ 'use strict'; | ||
var stdout = data.toString(); | ||
stdout = stdout | ||
.replace(/\[\d{2}:\d{2}:\d{2}\]/gi, chalk.white('$&')) | ||
.replace(/gulp-[a-z]+/gi, chalk.cyan.bold.underline('$&')) | ||
.replace(/finished/gi, chalk.cyan.bold.underline('$&')) | ||
.replace(/warning:?/gi, chalk.yellow.bold.underline('$&')) | ||
.replace(/(?:unhandled )?error:?/gi, chalk.red.bold.underline('$&')) | ||
.replace(/(\n|\r)$/g, ''); | ||
if (!stdout.test(/error:/gi)) { | ||
stdout = stdout | ||
.replace(/\[[0-9:]{6,10}\]/gi, chalk.white.bold.underline('$&')) | ||
.replace(/gulp-[a-z]+/gi, chalk.cyan.bold.underline('$&')) | ||
.replace(/finished/gi, chalk.cyan.bold.underline('$&')) | ||
.replace(/warning:?/gi, chalk.yellow.bold.underline('$&')) | ||
.replace(/(\n|\r)$/g, ''); | ||
} else { | ||
stdout = stdout | ||
.replace(/.+/gi, chalk.red('&?')) | ||
.replace(/(\n|\r)$/g, ''); | ||
} | ||
console.log(stdout); | ||
@@ -88,0 +93,0 @@ }; |
{ | ||
"name": "cml-cli", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Simple wrapper for build scripts to stabilize API and to scaffold views and common patterns of cml-frontend boilerplate. Not for standalone usage.", | ||
@@ -5,0 +5,0 @@ "bin": { |
6868
150