[Dojo-interest] layerDependencies in build
Eric Pasquier
epasquier at bepconcept.com
Tue Jun 15 10:41:26 EDT 2010
"a few mails ago", Dustin wrote some explanation about custom build :
http://mail.dojotoolkit.org/pipermail/dojo-interest/2010-May/046178.html
I used this and changed names for "myDojoLayer.js" and "myExtLayer.js",
which I suggest you to use to complete the doc page.
It's also a pleasure to see that comments are useful.
Tell me if you need some help.
Eric.
-----Message d'origine-----
De : dojo-interest-bounces at mail.dojotoolkit.org
[mailto:dojo-interest-bounces at mail.dojotoolkit.org] De la part de Ben Hockey
Envoyé : mardi 15 juin 2010 02:20
À : dojo-interest at mail.dojotoolkit.org
Objet : Re: [Dojo-interest] layerDependencies in build
yeah the point of the string.discard is that it's a discarded layer
and that's why it's not string.discard.js - this was another thing i
remember as being a little confusing too.
i sympathize with you, my experience with the docs for the build
process has been that they seemed to make more sense after i
understood the build process. unfortunately, when you're starting out
you don't have an understanding of the process :) it is a large topic
and so it takes some skill to cover it completely in a way that's easy
for everyone to understand.
of course, since this is open source anyone (including me or you) can
work on improving the documentation. little by little it all gets
done. in fact, i probably should have worked on a few paragraphs
instead of writing this :D
it helps to hear the suggestions for what would be useful improvements.
ben...
On Jun 14, 2010, at 8:09 AM, Eric Pasquier wrote:
> 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
>>
>
> _______________________________________________
> 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