grunt-contrib-requiregrep

Grunt task that creates AMD modules by searching for dependencies on source files

Grunt RequireDep Task

Searchs for dependencies required on your source code (eg. template files) and generates an AMD module from it.

This is useful to use an AMD bundler like r.js (check grunt-contrib-requirejs).