Permalink
Browse files

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.
  • Loading branch information...
danpoltawski committed Jun 28, 2016
1 parent b8474fe commit a382101c6ea0940812142a629e51452d069f109b
Showing with 2 additions and 0 deletions.
  1. +2 −0 Gruntfile.js
View
@@ -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);

0 comments on commit a382101

Please sign in to comment.