Wrap CommonJS in AMD via Grunt
It's based on amd-wrap, if you want this functionality outside of a Grunt plugin.
It doesn't take any options. You just configure it to map each source file to a destination file, and you end up with some wrapped-up-as-AMD modules. I'll give a few examples here, each under a different build target:
You'll probably want to use the last pattern most of the time. It's based on Grunt's dynamic mapping expansion feature.