Skip to content

Commit

Permalink
Remove gulp-util dependencies #88
Browse files Browse the repository at this point in the history
  • Loading branch information
lazd committed Jan 2, 2018
1 parent 28255f7 commit f9d16f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var through2 = require('through2');
var gutil = require('gulp-util');
var PluginError = require('plugin-error');

const PLUGIN_NAME = 'gulp-handlebars';

Expand All @@ -16,7 +16,7 @@ module.exports = function(opts) {
}

if (file.isStream()) {
this.emit('error', new gutil.PluginError(PLUGIN_NAME, 'Streaming not supported'));
this.emit('error', new PluginError(PLUGIN_NAME, 'Streaming not supported'));
return callback();
}

Expand All @@ -38,7 +38,7 @@ module.exports = function(opts) {
compiled = compiler(contents, compilerOptions);
}
catch (err) {
this.emit('error', new gutil.PluginError(PLUGIN_NAME, err, {
this.emit('error', new PluginError(PLUGIN_NAME, err, {
fileName: file.path
}));
return callback();
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "Handlebars plugin for gulp",
"main": "index.js",
"dependencies": {
"through2": "^0.6.3",
"handlebars": "^3.0.0",
"gulp-util": "^3.0.4"
"plugin-error": "^0.1.2",
"through2": "^0.6.3"
},
"devDependencies": {
"ember-handlebars": "^1.2.0",
"vinyl": "^2.1.0",
"gulp": "^3.8.11",
"gulp-concat": "^2.5.2",
"gulp-declare": "^0.3.0",
Expand Down
4 changes: 2 additions & 2 deletions test/main.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var handlebarsPlugin = require('../');
var defineModule = require('gulp-define-module');
var should = require('should');
var gutil = require('gulp-util');
var Vinyl = require('vinyl');
var fs = require('fs');
var path = require('path');
require('mocha');

var getFixture = function(filePath) {
filePath = path.join('test', 'fixtures', filePath);
return new gutil.File({
return new Vinyl({
path: filePath,
cwd: path.join('test', 'fixtures'),
base: path.dirname(filePath),
Expand Down

0 comments on commit f9d16f3

Please sign in to comment.