Newer
Older
pixi.js / gulp / tasks / watch.js
@Chad Engler Chad Engler on 11 Jan 2015 451 bytes fix gulp watch
var gulp    = require('gulp'),
    path    = require('path'),
    gutil   = require('gulp-util'),
    bundle  = require('../util/bundle');


gulp.task('watch', function () {
    gulp.watch(paths.scripts, ['jshint'])
        .on('change', logChanges);

    return bundle.watch();
});

function logChanges(event) {
    gutil.log(
        gutil.colors.green('File ' + event.type + ': ') +
        gutil.colors.magenta(path.basename(event.path))
    );
}