Project: appceleratorstudio
Issue TISTUD-2211: Support "define" method for defining RequireJS/AMD modules
Looking at http://usejsdoc.org/howto-commonjs-modules.html http://requirejs.org/docs/api.html#define and https://github.com/amdjs/amdjs-api/wiki/AMD There's a "define" method that takes in up to 3 arguments. The last argument is a function or object that is the object assigned to the module's module.exports property. The first optional argument is a string defining the module id. The second optional argument is an array of strings representing dependencies (ids of modules this one depends upon).
Story points: 8