Remove grunt.file.watchFiles

This commit is contained in:
Kyle Robinson Young 2012-12-12 10:40:14 -08:00
parent 6360a36871
commit 3496beb2f4

View File

@ -73,11 +73,8 @@ module.exports = function(grunt) {
grunt.log.ok(); grunt.log.ok();
var fileArray = Object.keys(changedFiles); var fileArray = Object.keys(changedFiles);
fileArray.forEach(function(filepath) { fileArray.forEach(function(filepath) {
var status = changedFiles[filepath];
// Log which file has changed, and how. // Log which file has changed, and how.
grunt.log.ok('File "' + filepath + '" ' + status + '.'); grunt.log.ok('File "' + filepath + '" ' + changedFiles[filepath] + '.');
// Add filepath to grunt.file.watchFiles for grunt.file.expand* methods.
grunt.file.watchFiles[status].push(filepath);
}); });
// Reset changedFiles // Reset changedFiles
changedFiles = Object.create(null); changedFiles = Object.create(null);