postcss-reporter
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Changelog | ||
## 1.2.0 | ||
- Add `noIcon` and `noPlugin` options to both reporter and formatter. | ||
## 1.1.0 | ||
@@ -4,0 +7,0 @@ - Use PostCSS 5's line/column properties on warnings, instead of relying on the source node. |
@@ -61,3 +61,3 @@ var chalk = require('chalk'); | ||
if (message.type === 'warning') { | ||
if (!options.noIcon && message.type === 'warning') { | ||
str += chalk.yellow(symbols.warning + ' '); | ||
@@ -67,3 +67,5 @@ } | ||
str += message.text; | ||
str += chalk.yellow(' [' + message.plugin + ']'); | ||
if (!options.noPlugin) { | ||
str += chalk.yellow(' [' + message.plugin + ']'); | ||
} | ||
return str; | ||
@@ -70,0 +72,0 @@ } |
@@ -11,2 +11,4 @@ var chalk = require('chalk'); | ||
positionless: options.positionless || 'first', | ||
noIcon: options.noIcon, | ||
noPlugin: options.noPlugin, | ||
}); | ||
@@ -13,0 +15,0 @@ |
{ | ||
"name": "postcss-reporter", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Log PostCSS messages in the console", | ||
@@ -30,5 +30,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "1.2.1", | ||
"eslint": "1.3.1", | ||
"lodash.clonedeep": "3.0.2", | ||
"stylelint": "0.7.0", | ||
"stylelint": "1.0.1", | ||
"tape": "4.2.0" | ||
@@ -35,0 +35,0 @@ }, |
@@ -90,2 +90,10 @@ # postcss-reporter [![Build Status](https://travis-ci.org/postcss/postcss-reporter.svg?branch=master)](https://travis-ci.org/postcss/postcss-reporter) | ||
**noIcon** (boolean, default = `false`) | ||
If `true`, no exclamatory triangle icons will be printed next to warnings. | ||
**noPlugin** (boolean, default = `false`) | ||
If `true`, plugin names will not be printed in brackets after messages. | ||
## How to get output without colors | ||
@@ -113,1 +121,3 @@ | ||
- sortByPosition (boolean, default = `true`) | ||
- noIcon (boolean, default = `false`) - Do not print any warning exclamatory triangle icons | ||
- noPlugin (boolean, default = `false`) - Do not print plugin names |
10546
104
122