yatskevich/grunt-bower-task — pull request #139 by hyphenbash (2014-10-13 02:44:33+00:00)
Title: Force main file for target folders automatically (exportsOverride automatic/generic variant)

Customizable Main file generator for target folders:

- forceMain: true => triggers the method
- built in regex pattern to look into directories for main file
- custom pattern to look into directories for main file
- fallback to built in if custom not found
- if built in pattern didn't find the main file then don't copy the component
- if not found still continue on the other tasks and never abort the operation, although catches the exception and logs on the console
- test: method should never abort on errors/exceptions

It still has space to tweak it more and expand the rules, like extend the custom regex pattern, etc. Please let me know your thoughts on this and help me out improve the code.