From dbf6b407829b1e89198a908ce99709943a5a6eee Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 14 Jan 2016 12:07:32 +0000 Subject: [PATCH] MDL-49817 grunt: jslint rename task config and make explict src Two reasons for this change: 1) The configuration here is confusing, it seems like we are setting the 'files' option, but in fact we are just generating a task configuration called 'files'. Lets try and avoid confusion. 2) It makes it possible for 'watch' to override the src --- Gruntfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 3dd3ef01bfb..904ef3a504b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -33,7 +33,9 @@ module.exports = function(grunt) { grunt.initConfig({ jshint: { options: {jshintrc: '.jshintrc'}, - files: [inAMD ? cwd + '/src/*.js' : '**/amd/src/*.js'] + amd: { + src: [inAMD ? cwd + '/src/*.js' : '**/amd/src/*.js'] + } }, uglify: { dynamic_mappings: { -- 2.43.0