The problem seems to be that I know nothing about AMD modules and their dependency mechanism. I will try and get up to speed on it first.
The following resource is all I have to go on so far:

https://github.com/amdjs/amdjs-api/wiki/AMD

If you know of any other tutorials that might help then please let me know. Thanks again for your kind help.

On 01/11/2012 05:25 PM, Christopher Hunt wrote:
On 12/01/2012, at 4:56 AM, Farrukh Najmi wrote:

It seems that I have to manually update the src/main/js/IndexContext.js file to 
reference each of my .js files. This seems rather painful a manual step. Am I 
missing something obvious or is there a way to automate the inclusion of all 
the function defined in my .js files in the project .js artifact.
Your indexContext.js needs to declare the dependencies it will be using 
*directly* not *transitively*. You generally do this by specifying the AMD 
module ids as dependencies in a define() or require() declaration. Is this what 
you're doing? Are you saying that you've got a big long list of module ids in 
your define statement?

May be a code example would be useful.

--
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to