Skip to content

Commit 2ffbd2a

Browse files
Replaced gulp-util w/ fancy-log
1 parent eedec8c commit 2ffbd2a

3 files changed

Lines changed: 5 additions & 391 deletions

File tree

gulp/compilejs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var browserify = require('browserify');
22
var buffer = require('vinyl-buffer');
33
var gulp = require('gulp');
4-
var gutil = require('gulp-util');
4+
var logger = require('fancy-log');
55
var source = require('vinyl-source-stream');
66
var uglify = require('gulp-uglify');
77
var watchify = require('watchify');
@@ -41,9 +41,9 @@ function watchjs(sources, outdir, outfile, opt_options) {
4141
}));
4242

4343
bundler.on('update', function() {
44-
gutil.log('recompiling js...');
44+
logger.info('recompiling js...');
4545
rebundle_(bundler, outdir, outfile, opt_options);
46-
gutil.log('finished recompiling js');
46+
logger.info('finished recompiling js');
4747
});
4848
return rebundle_(bundler, outdir, outfile, opt_options);
4949
}
@@ -52,7 +52,7 @@ function watchjs(sources, outdir, outfile, opt_options) {
5252
function rebundle_(bundler, outdir, outfile, opt_options) {
5353
var options = opt_options || {};
5454
return bundler.bundle()
55-
.on('error', gutil.log.bind(gutil, 'browserify error'))
55+
.on('error', logger.info.bind(logger, 'browserify error'))
5656
.pipe(source(outfile))
5757
.pipe(buffer())
5858
.pipe(uglify(options.uglify))

0 commit comments

Comments
 (0)