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
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: {