Here some documentation I created to better understand the content of the files.js in JHipster generators
This is an example of a file object. Each file object has:
condition: is a function of the generator that is used to check if the file(s) has to be createdpath: is the base path where the file has to be found from the generatortemplate: could either be a string or an object. Usually it's a string, and this implies that the path reference anejstemplate and the method to use istemplate.