Can the files
property of a task configuration in Grunt be dynamically populated via a function?
For example:
concat: {
angularSourceJs: {
src: function() {
return angularSort(grunt.file.expand('src/**/*.js'));
},
dest: 'dist/site.js'
}
}
karma: {
unit: {
files: function() {
return angularSort(grunt.file.expand('src/**/*.js'));
},
...
}
}
This feature would be beneficial especially when using grunt-contrib-watch and avoiding Grunt reloads.