Login Register

custom build

Problem with custom build and extra module

I'm using the latest dojo from subversion, and have successfully created and used a custom build. The problem is that I also have a custom module which I have been unable to get to work when I either include it in the custom build or simply compress it via shrinksafe.

Here's my build script and profile that work:

./build.sh profile=tradegator localeList="en-us" copyTests=false action=clean,release releaseDir=../../release/ releaseName=tradegator version=1.0-b1

Here's my profile: (tradegator.profile.js)

dependencies = {
layers: [
{

Source code debugging and enabling logging for custom build

We are trying to optimize our dojo code prior to going into production. I have created a custom build and grouped our modules into separate layer files. I am now trying to debug the application with these custom build files as we are seeing problems we didn't see with the files separated.

The following are some of the problems and questions I have for working with “layers” and a custom build. I would appreciate any suggestions from the group.

Custom build--how to exlude dojo/dijit components from custom namespace build output?

I am attempting to create a custom build of dojo for my organization.

All of our internally developed widgets and utility support functions are in a namespace mojo.

I would like to create a custom build of dojo which creates a dojo.js with the standard dojo components we use, a dijit.js with the standard digits, and a mojo.js (currently called mojoForm.js in my build profile so I can be sure to identify the file correctly in the output) which combines all of our custom widgetry.

Problems creating one package with dijit.Dialog through custom build

I'm new to Dojo and am trying to create a custom build of everything I need in one package/file. In other words, I want to include one javascript file in my html page that contains all of the necessary code so that additional calls to external files or dependencies are not needed. Besides the dojo base, my only other requirement (at least for the time being) is the dijit.Dialog code base. I have created a custom build using this profile:

dependencies = {
	layers: [
		{
			name: "../mydojo.js",
			dependencies: [
				"dijit.Dialog"
			]
		},
	],

	prefixes: [

Need help for Custom Build

Hi all,

I am newbie to DOJO.
Please help me in following issues on custom build.

1) In my project I used dijit.Tooltip, and my own js file(showToolTip.js).
Can you please help me to create profile.js file for my project.

2) I tried custom build with the following RK.profile.js file:

<code>
dependencies ={

layers: [

{

name: "sirius-dojo.js",
dependencies: [

"dijit.form.Button"

]

}

Custom Build nls directory 404 errors

Hi,

I am using internationalization on my project with Dojo 0.4.3. I want to know if I can somehow remove all the 404 errors I get from nls directory when it tries to load language files. I think this might be possible in Dojo 0.9+ build using the custom distribution. Is this possible in Dojo 0.4.3?

Thanks.

Problems Loading Bundles in Custom Build

I'm trying to do a custom build with compression. The build completes successfully, but my app is not able to find bundles loaded through getLocalization. It appears that the requireLocalization calls are having trouble with the module names. The documentation for the custom build implies that the resource bundles are embedded into the compressed Javascript file, but that isn't happening in my case. Is there something I need to do to enable the bundles to be pulled in? Can I specify them in the profile file somehow? Here's an example of the kind of failure I'm seeing, from Firebug:

How to exclude filesfrom Custom build?

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:

custom build, with release having only the required files

All,
Is there a way to do a custom build so that the release directory contains _only_ dojo.js, your layer file, and the required resources(css, images, etc)?

While a custom build is good, I hate having to check the entire dojo tree into our repository, just to make sure I don't miss any files. It would be even nicer if I didn't have to generate internationlization files.

Thanks in advance.

--james

Further breaking dojo core...

Here's a wacky experiment! I'd like to further break down dojo core into a skeleton dojo and a base module. For example I've created a custom profile:

dependencies = {
layers: [
{
name: "dojo.js",
customBase: true,
dependencies: [
]
},
{
name: "core.js",
dependencies: [
"dojo.core"
]
}

Syndicate content