33var cproc = require ( 'child_process' ) ;
44var through = require ( 'through2' ) ;
55var fs = require ( 'fs-extra' ) ;
6- var gutil = require ( 'gulp-util' ) ;
6+ var log = require ( 'fancy-log' ) ;
7+ var PluginError = require ( 'plugin-error' ) ;
78var argsFor = require ( './argsFor' ) ;
89var validFor = require ( './validFor' ) ;
910var path = require ( 'path' ) ;
@@ -25,12 +26,12 @@ module.exports = function(options) {
2526 var opts = { maxBuffer : options . maxBuffer } ;
2627
2728 fs . mkdirs ( options . outputDirectory , function ( err ) {
28- if ( err ) throw new gutil . PluginError ( 'gulp-nuget' , err ) ;
29+ if ( err ) throw new PluginError ( 'gulp-nuget' , err ) ;
2930
3031 cproc . execFile ( options . nuget , args , opts , function ( err , stdout ) {
31- if ( err ) throw new gutil . PluginError ( 'gulp-nuget' , err ) ;
32-
33- gutil . log ( stdout . trim ( ) ) ;
32+ if ( err ) throw new PluginError ( 'gulp-nuget' , err ) ;
33+
34+ log ( stdout . trim ( ) ) ;
3435
3536 var files = findNupkgs ( stdout ) ;
3637 pushFiles . call ( self , files , done ) ;
@@ -45,7 +46,7 @@ function pushFiles(files, done) {
4546
4647 files . forEach ( function ( file , index ) {
4748 fs . readFile ( file , function ( err , data ) {
48- if ( err ) throw new gutil . PluginError ( 'gulp-nuget' , err ) ;
49+ if ( err ) throw new PluginError ( 'gulp-nuget' , err ) ;
4950
5051 self . push ( new File ( {
5152 base : path . dirname ( file ) ,
@@ -72,7 +73,7 @@ function findNupkgs(stdout) {
7273 }
7374
7475 if ( ! matches || ! matches . length ) {
75- throw new gutil . PluginError ( 'gulp-nuget' , 'Could not detect any output .nupkg files from nuget.' ) ;
76+ throw new PluginError ( 'gulp-nuget' , 'Could not detect any output .nupkg files from nuget.' ) ;
7677 }
7778
7879 return matches ;
0 commit comments