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:
+3
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user