[Dojo-interest] layerDependencies in build

Eric Pasquier epasquier at bepconcept.com
Mon Jun 14 08:09:35 EDT 2010


I gave it up some weeks ago, but now it works : my second layer does not 
include the packages of the dojo layer anymore !
Thanks Ben for this precision.

May I suggest to add a code example in the page for the "layerDependencies" 
section ?
Also, I remember that the file name "string.discard" in the example 
disturbed me the first time. May be could be change to "string.discard.js".

Eric.


----- Original Message ----- 
From: "Ben Hockey" <neonstalwart at gmail.com>
To: <dojo-interest at mail.dojotoolkit.org>
Sent: Saturday, June 12, 2010 4:34 PM
Subject: Re: [Dojo-interest] layerDependencies in build


> the layerDependencies should match the name property of the layer it
> depends on - ie '../dojo/exceptions.js'.  i found this to be
> counterintuitive when i first did this - dependencies are package
> names and layerDependencies are paths... you're not alone.  i updated
> the docs at http://docs.dojocampus.org/build/profiles#layers to try
> and make this clearer.
>
> ben...
>
>
> On Jun 11, 2010, at 2:31 PM, Robert wrote:
>
>> I am trying to make a custom build where my code consists of 2 layers.
>> I include the 2 layers in my build file, but I want to prevent the
>> code
>> from the 1st layer to be included in the 2nd layer.
>> I tried this with a profile I included below. The problem is that the
>> layerDependencies does not seem to do anything. The declarations in
>> the
>> dojox.exceptions file are included in dojox.collections file too. What
>> am I doing wrong?
>>
>> var dependencies =
>> {
>>     layers:
>>         [
>>             {
>>                 name: "dojo.js",
>>                 resourceName: "dojo",
>>                 layerDependencies: [],
>>                 dependencies: ["dojox.string.Builder"]
>>             }
>>             ,
>>             {
>>                 name: "../dojox/exceptions.js",
>>                 resourceName: "dojox.exceptions",
>>                 layerDependencies: [],
>>                 dependencies: ["dojox.exceptions"]
>>             }
>>             ,
>>             {
>>                 name: "../dojox/collections.js",
>>                 resourceName: "dojox.collections",
>>                 layerDependencies: ["dojox.exceptions"],
>>                 dependencies: ["dojox.collections"]
>>             }
>>         ]
>>     ,
>>     prefixes:
>>         [
>>             [ "dojox.string", dojopath + "/dojox/string" ],
>>             [ "dojox", basedir + "/src/dojox" ]
>>         ]
>> };
>>
>> _______________________________________________
>> FAQ: http://dojotoolkit.org/support/faq
>> Book: http://docs.dojocampus.org
>> Dojo-interest at mail.dojotoolkit.org
>> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> 



More information about the Dojo-interest mailing list