Skip to content

Commit

Permalink
Update: Reduce size by removing chalk
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschlinkert authored and phated committed Dec 29, 2017
1 parent 6ebdac3 commit 8d3594e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/

var util = require('util');
var chalk = require('chalk');
var red = require('ansi-red');
var cyan = require('ansi-cyan');
var extend = require('extend-shallow');
var differ = require('arr-diff');
var union = require('arr-union');
Expand Down Expand Up @@ -135,9 +136,9 @@ PluginError.prototype.toString = function () {

// format the output message
function message(msg, thisArg) {
var sig = chalk.red(thisArg.name);
var sig = red(thisArg.name);
sig += ' in plugin ';
sig += '"' + chalk.cyan(thisArg.plugin) + '"';
sig += '"' + cyan(thisArg.plugin) + '"';
sig += '\n';
sig += msg;
return sig;
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "plugin-error",
"description": "Error handling for vinyl plugins. Just an abstraction of what's in gulp-util with minor changes.",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/jonschlinkert/plugin-error",
"author": {
"name": "Jon Schlinkert",
Expand All @@ -14,10 +14,7 @@
"bugs": {
"url": "https://github.com/jonschlinkert/plugin-error/issues"
},
"license": {
"type": "MIT",
"url": "https://github.com/jonschlinkert/plugin-error/blob/master/LICENSE"
},
"license": "MIT",
"files": [
"index.js"
],
Expand All @@ -29,13 +26,18 @@
"test": "mocha"
},
"dependencies": {
"ansi-cyan": "^0.1.1",
"ansi-red": "^0.1.1",
"arr-diff": "^1.0.1",
"arr-union": "^2.0.1",
"chalk": "^1.0.0",
"extend-shallow": "^1.1.2"
},
"devDependencies": {
"mocha": "*",
"should": "*"
}
},
"keywords": [
"error",
"plugin"
]
}

0 comments on commit 8d3594e

Please sign in to comment.