postcss-log-warnings
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -22,3 +22,3 @@ 'use strict'; | ||
process.on('exit', function() { | ||
process.exit(exitCode); | ||
if (exitCode) process.exit(exitCode); | ||
}); |
{ | ||
"name": "postcss-log-warnings", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Log PostCSS warnings in the console", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,13 +13,4 @@ # postcss-log-warnings [![Build Status](https://travis-ci.org/davidtheclark/postcss-log-warnings.svg?branch=master)](https://travis-ci.org/davidtheclark/postcss-log-warnings) | ||
Something like this (using fake plugins) ... | ||
![Example](example.png?raw=true) | ||
``` | ||
test/forVisual.css | ||
2:3 [reject-colors] no colors allowed | ||
6:1 [reject-colors] no colors allowed | ||
7:6 [reject-backgrounds] no backgrounds allowed | ||
``` | ||
... except that the plugin uses [chalk](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=https%3A%2F%2Fgithub.com%2Fsindresorhus%2Fchalk&ei=O3QkVZ6QNoa4sAXjo4HgCQ&usg=AFQjCNFsl0WVrLJkcmEivcr4eAsYYAsdrw&bvm=bv.90237346,d.eXY) for helpful coloring & formatting in the console output. | ||
## Installation | ||
@@ -53,3 +44,9 @@ | ||
- **plugins** (array of strings, default = []): If empty, `logWarnings` will log every warning, regardless of which plugin registered it. To limit output, name the plugins whose warnings you would like to see. For example, `{ plugins: ['postcss-bem-linter'] }` will only log warnings from the `postcss-bem-linter` plugin. | ||
- **throwError** (boolean, default = `false`): If `true`, after `logWarnings` logs your warnings it will exit the process with code 1 if it found any warnings. | ||
- **plugins** (array of strings, default = []) | ||
If empty, `logWarnings` will log every warning, regardless of which plugin registered it. | ||
To limit output, name the plugins whose warnings you would like to see. | ||
For example, `{ plugins: ['postcss-bem-linter'] }` will only log warnings from the `postcss-bem-linter` plugin. | ||
- **throwError** (boolean, default = `false`) | ||
If `true`, after `logWarnings` logs your warnings it will exit the process with code 1 if it found any warnings. |
49132
16
51