Skip to content

Commit

Permalink
Merge pull request #65 from rogeriopvl/64-remove-gulp-util-dependency
Browse files Browse the repository at this point in the history
refactor: remove gulp-util dependency
  • Loading branch information
rogeriopvl authored Dec 30, 2017
2 parents fb3a5da + e91a8b4 commit d6f4fea
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 479 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

var mapStream = require('map-stream');
var gutil = require('gulp-util');
var c = gutil.colors;
var colors = require('ansi-colors');
var jsonlint = require('jsonlint');
var through = require('through2');
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error')
var log = require('fancy-log')

var formatOutput = function (msg) {
var output = {};
Expand Down Expand Up @@ -36,8 +36,8 @@ var jsonLintPlugin = function (options) {
};

var defaultReporter = function (file) {
gutil.log(c.yellow('Error on file ') + c.magenta(file.path));
gutil.log(c.red(file.jsonlint.message));
log(colors.yellow('Error on file ') + colors.magenta(file.path));
log(colors.red(file.jsonlint.message));
};

jsonLintPlugin.reporter = function (customReporter) {
Expand Down
Loading

0 comments on commit d6f4fea

Please sign in to comment.