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
This commit is contained in:
Dan Poltawski
2016-01-21 15:13:45 +00:00
parent eddec36d49
commit dbf6b40782
+3 -1
View File
@@ -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: {