Instead of adding the destinations in the dest attribute I would like to make it dynamic so I can assign the destinations when I run the task from the command line or when I run it from another task. That way I can copy the file to any folder(s) I want whenever I call the task.
copy: {
nightlyBuild: {
files: [{
expand: true,
cwd: '../',
src: ['index.html'],
dest: 'destinations'
}]
}
},
I am assuming I need to use grunt.option and grunt.config but can't seem to get it right. I have multiple scripts that I would like to reuse in a similar way.