I have configured Grunt to use ng-annotate. What I want is to annotate all .js files in a specific directory and copy them to a new directory when the annotation is finished. However, the complete src folder is copied to the new directory. This is my configuration:
ngAnnotate: {
options: {
singleQuotes: true
},
dist: {
files: [{
expand: true,
src: ['./src/modules/*.js'],
dest: './src/min-safe',
ext: '.annotated.js',
extDot: 'last'
}],
}
}
This way, I have a min-safe folder with src/modules and the annotated files. How can I just copy the annotated files into min-safe directly?