Login Register

build

dojo CSS includes

Hi,

I have a couple of questions about the use of CSS resources:

1. If I am using dijit, and am including the theme (say tundra.css), does dojo.css still need to be explicitly loaded? If yes, is there a way to set up the build so it is interred inside the built tundra.css?

2. Ditto for dijit.css. I have noticed that when loading dojo from Google's CDN, there are separate requests for tundra.css and dijit.css, even though tundra.css @import-s dijit.css, so I would have thought that the build process would have combined these 2 files?

Thanks
Amit

Dojo XD Custom Build: What am I missing?

Hello Dojo'ers,

I am trying to test out the Dojo build system to ensure it will meet my needs in the future for my current project.

I have a build profile that looks like this:

dependencies ={
  layers:  [
    {name: "MobusLayer.js",
      resourceName: "custom.MobusLayer",
      dependencies: [
                "dojo.data.ItemFileReadStore",

                "dijit._Widget",
                "dijit._Templated",

                "tcpsocket.Orbited"
      ]
    }
  ],
  prefixes: [
      [ "dijit", "../dijit" ],
      [ "dojox", "../dojox" ],
      [ "tcpsocket", "../tcpsocket" ],
  ]
};

dojo.provide and versioning

Hi,

I want to provide 2 versions of an object in application, depending on the usage: i.e. one that pulls data from my server using XHR and another to be used when app is deployed as a plugin on 3rd party sites, uses JSON to communicate with my server.
The 2 versions have an identical interface. I am wondering if this idiom would work (I load everything X-domain):
I keep a file obj_v1.js which has:

dojo.provide("scope.obj_v1");
scope.obj = {...};

I also keep a file obj_v2.js which has:

dojo.provide("scope.obj_v2");

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.

Error in Explorer: "Bundle not found : loading in dijit ,locale=en"

After completing a simple build on my dojo script (I just needed to include the accordion script) I'm receiving an error message on IE 6: "Bundle not found loading in dijit ,locale=en." I assume this means that something isn't loading before a request is being made.

I'm a newbie here, so I'm not even sure where to begin to debug this problem.

Optimizing serveral layers

Hello, I want to define serveral layers for my application. The main layer will be loaded when the page loads, while the others will load during navigation.

build 0.9

Hola List,

Definitely I'm missing something to get my build to work. It compiles fine but the result is not as expected: WHYYYYY???!!!!

I WOULD love to have a whatever.js file that has exactly the js I need, and nothing else. It's about 20 js files, included my own stuff which is packed under the dojo directory. My profile file looks like that:

dependencies ={
layers: [
{
name: "myWidgetDojo.js",
dependencies: [
"dijit._base.bidi.js",
"dijit._base.focus.js",
"dijit._base.manager.js",

Cross Domain (XDomain) Builds for my new modules

Hi,

I build new modules using the " dojo.declare("new class", null) " statement.
I am loading dojo from another domain and there for I am using the simple Xdomain build.
How should I build my new modules for being able to use them from another domain?
If I just reference to the, using dojo.registerModulePath and then dojo.require i recieve error in Firefox.

thanks

Build Profile Parameter Descriptions Table

In order to try and fully understand the dojo build profile parameters, I have attempted to describe them in the following table. It took me some time to gather this information from different sources and through trial and error, so if I can get some help with this table (especially corrections and additions), I would like to attach it to the dojo 1.x manual for others to use.

For source code at version 1.0.2, this table assumes a minimal build command of the form:

v1.0.2 build profile parameter "resourceName" purpose?

What is the purpose of the resourceName parameter in a dojo v1.0.2 build profile?

-=> Gregg <=-

Syndicate content