From a382101c6ea0940812142a629e51452d069f109b Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 28 Jun 2016 18:21:04 +0100 Subject: [PATCH] MDL-55050 grunt: make eslint only build changed files on watch Previously a watch change was causing eslint to be re-run on every file. --- Gruntfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index b7283412e4a..d83215310ff 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -286,6 +286,8 @@ module.exports = function(grunt) { var changedFiles = Object.create(null); var onChange = grunt.util._.debounce(function() { var files = Object.keys(changedFiles); + grunt.config('eslint.amd.src', files); + grunt.config('eslint.yui.src', files); grunt.config('jshint.amd.src', files); grunt.config('uglify.amd.files', [{ expand: true, src: files, rename: uglifyRename }]); grunt.config('shifter.options.paths', files); -- 2.17.1