I'm trying to create a custom build that ONLY contains the files required for my custom widgits but the base dojo / dijit / dojox dependency files are always included. How can I exclude the base dojo files (since they're included in a separate baked build)?
Here's the command I'm using:
java -jar ../shrinksafe/custom_rhino.jar build.js action=release releaseName=common name=common version=0.0.1.dev optimize=shrinksafe layerOptimize=shrinksafe copyTests=false internStrings=true profileFile=D:\xxx\common.profile.js releaseDir=D:\xxx\target\release\
Here's my profile file:
dependencies = {
layers: [
{
name: "../common.js",
dependencies: [
"xxx.Dialog",
"xxx.Grid",
"xxx.GridModel"
]
}
],
prefixes: [
[ "dijit", "../dijit" ],
[ "dojox", "../dojox" ],
[ "xxx", "../../src/xxx" ]
]
}

You can try to define a
You can try to define a discard layer, and use that layer as dependency for your layer. You can see the util/buildscripts/profiles/layers.profile.js file with some info:
http://trac.dojotoolkit.org/browser/util/trunk/buildscripts/profiles/lay...
There is at least one bug with the discard layer approach, so it may not work. Unfortunately trac is very slow at the moment so I cannot give the exact issue.
Yes, I created a layer that
Yes, I created a layer that included everything that I didn't want to include, set discard= true and those modules were not included within the baked build.
Thanks!