postcss-reporter
Advanced tools
Comparing version 0.3.0 to 0.3.1
# Changelog | ||
### v0.3.1 | ||
- Remove leftover debugging log statement. | ||
### v0.3.0 | ||
@@ -4,0 +7,0 @@ - Add `sortByPosition` option (to both the reporter and the formatter), with default value `true`. |
@@ -16,3 +16,2 @@ var chalk = require('chalk'); | ||
console.log('SORT BY POSITION ' + sortByPosition); | ||
var orderedMessages = (sortByPosition) | ||
@@ -19,0 +18,0 @@ ? sortByAll( |
{ | ||
"name": "postcss-reporter", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Log PostCSS messages in the console", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -44,9 +44,9 @@ # postcss-reporter [![Build Status](https://travis-ci.org/postcss/postcss-reporter.svg?branch=master)](https://travis-ci.org/postcss/postcss-reporter) | ||
### Options | ||
## Options | ||
#### clearMessages (boolean, default = `false`) | ||
**clearMessages** (boolean, default = `false`) | ||
If true, the plugin will clear the result's messages after it logs them. This prevents other plugins, or the whatever runner you use, from logging the same information again and causing confusion. | ||
#### formatter (function, default = the default formatter) | ||
**formatter** (function, default = the default formatter) | ||
@@ -69,3 +69,3 @@ By default, this reporter will format the messages for human legibility in the console. | ||
#### plugins (array of strings, default = `[]`) | ||
**plugins** (array of strings, default = `[]`) | ||
@@ -76,15 +76,15 @@ If empty, the plugin will log every message, regardless of which plugin registered it. | ||
#### throwError (boolean, default = `false`) | ||
**throwError** (boolean, default = `false`) | ||
If `true`, after the plugin logs your messages it will throw an error if it found any warnings. | ||
#### sortByPosition (boolean, default = `true`) | ||
**sortByPosition** (boolean, default = `true`) | ||
If `false`, messages will not be sorted by line/column position. | ||
### How to get output without colors | ||
## How to get output without colors | ||
If you would like no colors in the console output, simply pass `--no-colors` when you invoke whatever command runs this plugin. (This works because of [chalk](https://github.com/sindresorhus/chalk).) | ||
### Standalone formatter | ||
## Standalone formatter | ||
@@ -91,0 +91,0 @@ You can also use this module's formatter as a library, with following API: |
75417
379