hook to generate index file for controllers,services,directives and other entities