yeoman/grunt-bower-hooks — pull request #8 by iammerrick (2013-02-19 01:07:41+00:00)
Title: Use r.js parser instead of regular expression!

I extracted the necessary files from the r.js project to modify configuration. Because the r.js project is written in AMD, I had to introduce two new dependencies to this project but in turn got rid of two dependencies. :-)

I removed indent because the r.js parsing infers it from the file.

The only modifications to rjs files was adding the amd define so we could require them in our Node.js driven script. This is at the top of each of those files.

I added a new test case to show that it works with the global style configuration approach as well as the traditional style.

I think this is more useful than what is in place. Ideally @jrburke introduces an API we can consume and we won't have to awkwardly bring in the necessary files.