text: 'use strict';
  
  var gulp = require('gulp');
  var path = require('path');
  var util = require('gulp-util');
  
  // Watch for changes.
  gulp.task('watch', ['sass'], function () {
    gulp.watch([global.paths.js], ['lintjs', 'js']).on('change', logChanges);
    gulp.watch([global.paths.sass], ['lintsass', 'sass']).on('change', logChanges);
    gulp.watch([global.paths.html, global.paths.php], ['html']).on('change', logChanges);
  });
  
  function logChanges(event) {
    util.log(
      util.colors.green('File ' + event.type + ': ') +
      util.colors.magenta(path.basename(event.path))
    );
  }
  