grunt-amdwrap
A Grunt plugin for wrapping JS-modules written in AMD style
Wrap your AMD modules before concat with RequireJS
Wrapped AMD modules will have ids by local "define" wrappers
Getting Started
Install this grunt plugin next to your project's
grunt.js gruntfile
with: npm install grunt-amdwrap
Then add this line to your project's grunt.js
gruntfile:
grunt;
Documentation
grunt;
Wrapper code
; { { var args = Arrayprototypeslice; if typeof args0 !== 'string' args; windowdefine; } defineamd = jQuery: true ; // module contents };
Author
Viacheslav Lotsmanov
License
GNU/GPLv3 by Free Software Foundation