replacement gulp-util (#813)
* replacement gulp-util * Update shrinkwrap
This commit is contained in:
Родитель
3c8711417f
Коммит
4ad1a2dc28
|
@ -2,7 +2,7 @@
|
|||
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
||||
|
||||
var gulp = require("gulp");
|
||||
var log = require("gulp-util").log;
|
||||
var log = require('fancy-log');
|
||||
var istanbul = require('gulp-istanbul');
|
||||
var isparta = require('isparta');
|
||||
var sourcemaps = require("gulp-sourcemaps");
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -546,7 +546,8 @@
|
|||
"gulp-sourcemaps": "^1.6.0",
|
||||
"gulp-tslint": "^8.1.2",
|
||||
"gulp-typescript": "^3.1.5",
|
||||
"gulp-util": "^3.0.7",
|
||||
"ansi-colors": "^3.1.0",
|
||||
"fancy-log": "^1.3.2",
|
||||
"isparta": "^4.0.0",
|
||||
"jest": "^22.1.4",
|
||||
"jest-cli": "^22.1.4",
|
||||
|
@ -554,6 +555,7 @@
|
|||
"mocha": "^3.2.0",
|
||||
"mocha-teamcity-reporter": "^1.0.0",
|
||||
"mock-fs": "^4.4.1",
|
||||
"plugin-error": "^1.0.1",
|
||||
"remap-istanbul": "^0.9.5",
|
||||
"rmdir": "^1.2.0",
|
||||
"run-sequence": "^1.2.2",
|
||||
|
|
|
@ -4,20 +4,21 @@
|
|||
|
||||
var child_process = require("child_process");
|
||||
var fs = require("fs");
|
||||
var gutil = require("gulp-util");
|
||||
var log = require('fancy-log');
|
||||
const colors = require('ansi-colors');
|
||||
var path = require("path");
|
||||
var PluginError = gutil.PluginError;
|
||||
var PluginError = require('plugin-error');
|
||||
var through = require("through2");
|
||||
|
||||
/**
|
||||
* Pretty logger using gutil.log
|
||||
* Pretty logger using 'log'
|
||||
* @param {string} pluginName Name of the pluginName
|
||||
* @param {Object} file A gulp file to report on
|
||||
* @param {string} message The error message to display
|
||||
*/
|
||||
var logError = function(pluginName, file, message) {
|
||||
var sourcePath = path.relative(__dirname, file.path).replace("../","");
|
||||
gutil.log("[" + gutil.colors.cyan(pluginName) + "] " + gutil.colors.red("error") + " " + sourcePath + ": " + message);
|
||||
log("[" + colors.cyan(pluginName) + "] " + colors.red("error") + " " + sourcePath + ": " + message);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче