ngbp/ng-boilerplate — pull request #179 by SamHowie (2013-10-13 10:18:02+00:00)
Title: Automate dependency gathering and less importing processes

## summary

I have automated a few processes to try to further promote the goal that module directories can simply be dragged and dropped across projects. I hope these changes are agreeable.

## feat(dependencies): Automate dependency gathering

Any files matching the globs 'src/app/**/.dependencies.js' and 'src/common/**/.dependencies.js' will automatically have their dependencies merged into the bower.json file, and the list of vendor_files that is used during the build process. Further work could be done to have bower prune and then install dependencies as part of this process.

## feat(less): Automate importing src/app and src/common less files into main.less

Any less files found in 'src/app' and 'src/common' will be automatically imported into the base of the 'src/less/main.less' file at build time. To achieve this the build process must make a temporary copy of the main.less file, append a string of imports to the base of this file, use it as the target of the recess compilation process, and then then delete the temporary file. This may not be the most ideal solution, but it allows users to drag and drop folders into their projects 'app' and 'common' directories without worrying about adding their less imports to the main.less file. The advantage to including the less files as imports is that the 'src/app' less files can still exploit any less variables that have been defined in app.less. However, this approach may encourage bad practices with the 'src/common' less files.