Skip to content

Commit

Permalink
Replace deprecated gulp-util
Browse files Browse the repository at this point in the history
Closes GH-19
Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
  • Loading branch information
Murderlon authored and wooorm committed Dec 18, 2018
1 parent 5f7baa3 commit eeb0bf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var PassThrough = require('stream').PassThrough
var engine = require('unified-engine')
var xtend = require('xtend')
var PluginError = require('gulp-util').PluginError
var PluginError = require('plugin-error')
var through = require('through2')
var convert = require('convert-vinyl-to-vfile')

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
],
"dependencies": {
"convert-vinyl-to-vfile": "^2.0.0",
"gulp-util": "^3.0.7",
"plugin-error": "^1.0.1",
"through2": "^2.0.1",
"unified-engine": "^6.0.0",
"vinyl": "^2.2.0",
"xtend": "^4.0.1"
},
"devDependencies": {
Expand Down
6 changes: 2 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
'use strict'

var PassThrough = require('stream').PassThrough
var util = require('gulp-util')
var PluginError = require('plugin-error')
var File = require('vinyl')
var test = require('tape')
var html = require('remark-html')
var engine = require('..')
var example = require('./example')
var spy = require('./spy')

var File = util.File
var PluginError = util.PluginError

var input = ['# h1', '', '', '## h2', ''].join('\n')

var report = [
Expand Down

0 comments on commit eeb0bf7

Please sign in to comment.