Login Register

custom build

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"
]
}

5-minute Custom Build

Working on the drag and drop form editor, I'm pulling in lots of modules: almost
everything in dijit.form, dojo.dnd (of course), and dijit.lang.functional &
dijit.lang.aspect because they're fun. Each module I require then pulls in
more files that it needs, so I was up to 131 web requests to load a single
page. The latency is acceptable on localhost, but it's absolutely terrible over
the network.

Custom Build of dijit-all

I am running a custom build of dojo (I have to have it run concurrently with an older version).
I'd like to use dijit-all instead of having to download loads of tiny files, however dijit-all has "dojo" hard-coded throughout where I want to use my custom namespace.

Is there a way of building dijit-all, or configuring it to use my namespace?

Thanks in advance.

Syndicate content