From 7d15b0ba08a80b1881f5ea382349468cf5994faf Mon Sep 17 00:00:00 2001 From: Jonathan Kemp Date: Thu, 25 Oct 2018 21:51:48 -0400 Subject: [PATCH] Remove gulp-util. --- package-lock.json | 48 +++++++++++++++++++++++++++++++++++++++++------ package.json | 4 ++-- test/main.js | 4 ++-- 3 files changed, 46 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 36e307b..2efbb0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2182,6 +2182,19 @@ "replace-ext": "0.0.1", "through2": "^2.0.0", "vinyl": "^0.5.0" + }, + "dependencies": { + "vinyl": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", + "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", + "dev": true, + "requires": { + "clone": "^1.0.0", + "clone-stats": "^0.0.1", + "replace-ext": "0.0.1" + } + } } }, "gulplog": { @@ -6015,14 +6028,37 @@ } }, "vinyl": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", - "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", + "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", "dev": true, "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" + "clone": "^2.1.1", + "clone-buffer": "^1.0.0", + "clone-stats": "^1.0.0", + "cloneable-readable": "^1.0.0", + "remove-trailing-separator": "^1.0.1", + "replace-ext": "^1.0.0" + }, + "dependencies": { + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", + "dev": true + }, + "clone-stats": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", + "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", + "dev": true + }, + "replace-ext": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true + } } }, "vinyl-fs": { diff --git a/package.json b/package.json index fb44347..1906961 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,9 @@ "gulp": "^3.9.1", "gulp-eslint": "^5.0.0", "gulp-mocha": "^6.0.0", - "gulp-util": "^3.0.8", "mocha": "^5.0.1", "nyc": "^13.1.0", - "should": "^13.2.1" + "should": "^13.2.1", + "vinyl": "^2.2.0" } } diff --git a/test/main.js b/test/main.js index f348c86..5b431f1 100644 --- a/test/main.js +++ b/test/main.js @@ -5,11 +5,11 @@ var should = require('should'), fs = require('fs'), path = require('path'), - gutil = require('gulp-util'), + Vinyl = require('vinyl'), extractCss = require('../index'); function getFile(filePath) { - return new gutil.File({ + return new Vinyl({ path: path.resolve(filePath), cwd: './test/', base: path.dirname(filePath),