I am trying to automate my testing and wanted to automatically create test files for any javascript created in the src folder. This breaks up the structure of my folder.
js
So, from the above folder structure, I want to create the whole folder structure and files in my specifications, as it is only if the file in the destination folder does not exist yet : -
js
My approach to solving this issue is to browse all the files / folders in the src folder: -
watch:{
src : {
files: ['src/**/*.*'],
tasks: //create files and folders on specs folders here
}
I came across a grunt.file plugin, and also reviewed the grunt-shell and make my own script to achieve this.
But I was wondering if there is an easier way to do this.