Newer
Older
pixi.js / gulp / tasks / watch.js
@Chad Engler Chad Engler on 24 Dec 2014 431 bytes Initial Reorganization
var gulp    = require('gulp'),
    path    = require('path'),
    gutil   = require('gulp-util');


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

    return bundle.watch(connect.reload, isDev);
});

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