dojo-build

Dojo custom build getting browser errors due to missing resources

佐手、 提交于 2019-12-23 19:27:54
问题 I've been struggling with learning the AMD based Dojo build system. So far I haven't been able to get a build that is usable without getting load errors in the browser (FF). I have questions about how to manage the build. My build profile file has a packages section. What I specify there seems to directly correlate to those same package directories being written into the destination directory. This seems appropriate. However, I also have a layers section that is trying to merge just the

Dojo build -> dojo.require(); still needed?

て烟熏妆下的殇ゞ 提交于 2019-12-21 05:21:39
问题 this was my first dojo build so please excuse my ignorance in this matter. I've just created my custom build from dojo build system using the following (very simplified) profile: dependencies = { stripConsole: "normal", layers: [ { name: "../dijits/cx/dijitsCXbuild.js", copyrightFile: "CopyrightCX.txt", dependencies: [ "dojo.parser", "dijit.dijit", "dijit._Widget", "dijit._Templated", "dijit._Container", "dojo.i18n", "dojo.NodeList-fx", "dojox.grid.cells", "dojox.grid.DataGrid", "dojox.layout

Dojo AMD style templates for EnhancedGrid Filter plugin

ⅰ亾dé卋堺 提交于 2019-12-12 03:03:07
问题 I have an Enhanced grid with Filter plugin as shown below: <!DOCTYPE html> <html > <head> <style type="text/css">@import "./dojo/resources/dojo.css"; @import "./dojox/grid/enhanced/resources/claro/EnhancedGrid.css"; @import "./dojox/grid/enhanced/resources/EnhancedGrid_rtl.css"; /*Grid need a explicit width/height by default*/ #grid { width: 45em; height: 20em; }</style> <script data-dojo-config="async: true" src='./dojo/dojo.js'></script> <script data-dojo-config="async: true" src='./dojo

Is it possible to use Dojo build without modifying JS files?

放肆的年华 提交于 2019-12-11 03:31:58
问题 Is it possible to use Dojo build without the need to modify JavaScript files? The article dgrid and Dojo Nano Build provides the instruction to create the build, but it requires adding the following line into JavaScript file, which initializes the application: require(['dgrid/dgrid'], function () { (replacing 'dgrid/dgrid' with your build module name). However, it is very problematic when using build for own modules, because, of course, in development mode the require with own layer can't be

Dojo Custom Build 1.6 into a single file

二次信任 提交于 2019-12-07 18:14:34
问题 I've a problem trying to create a custom build on Dojo, I dont even know is it possible what I want.. I want to have a "single js file" loading all the components that i use across the application. so it doesnt load several files just one containing what I need, or at least just the ones I need. As far as I read I need to create a Profile for this build, this is the profile I use (file in profiles folder ex: test.profiles.js). dependencies ={ layers: [ { name: "test_dojo.js", customBase: true

Dojo 1.9 build 'multipleDefine' error while loading locale

拜拜、爱过 提交于 2019-12-06 22:52:31
问题 My dojo application breaks after building, during loading the app, throwing 'multipleDefine' and giving this error: Error {src: "dojoLoader", info: Object} Message: multipleDefine info: Object {pid: "dojo", mid: "dojo/nls/dojo_en-us", pack: Object, url: "dojo/nls/dojo_en-us.js", executed: 5…} Here is my profile: var profile = { // `basePath` is relative to the directory containing this profile file; in this case, it is being set to the // src/ directory, which is the same place as the

How to exclude files from Dojo's Build System?

白昼怎懂夜的黑 提交于 2019-12-06 09:52:13
问题 I'm following the official documentation page about the topic but I cannot configure it to ignore .txt files. I have a all.profile.js on the root of my project: var profile = (function(){ return { basePath: "./", releaseDir: "../web", action: "release", layerOptimize: "closure", optimize: "closure", cssOptimize: "comments", mini: true, stripConsole: "all", packages: [ { name: "myapp", location: "myapp" } ] }; })(); And this is the package.json inside the folder myapp : { "dojoBuild": "myapp

Dojo Custom Build 1.6 into a single file

微笑、不失礼 提交于 2019-12-06 03:25:09
I've a problem trying to create a custom build on Dojo, I dont even know is it possible what I want.. I want to have a "single js file" loading all the components that i use across the application. so it doesnt load several files just one containing what I need, or at least just the ones I need. As far as I read I need to create a Profile for this build, this is the profile I use (file in profiles folder ex: test.profiles.js). dependencies ={ layers: [ { name: "test_dojo.js", customBase: true, selectorEngine: "acme", dependencies: [ "dojo/dojo", "dijit.form.Form", "dijit.form.Button", "dijit

Dojo 1.9 build 'multipleDefine' error while loading locale

只谈情不闲聊 提交于 2019-12-05 04:39:52
My dojo application breaks after building, during loading the app, throwing 'multipleDefine' and giving this error: Error {src: "dojoLoader", info: Object} Message: multipleDefine info: Object {pid: "dojo", mid: "dojo/nls/dojo_en-us", pack: Object, url: "dojo/nls/dojo_en-us.js", executed: 5…} Here is my profile: var profile = { // `basePath` is relative to the directory containing this profile file; in this case, it is being set to the // src/ directory, which is the same place as the `baseUrl` directory in the loader configuration. (If you change // this, you will also need to update run.js.)

How to exclude files from Dojo's Build System?

*爱你&永不变心* 提交于 2019-12-04 16:41:47
I'm following the official documentation page about the topic but I cannot configure it to ignore .txt files. I have a all.profile.js on the root of my project: var profile = (function(){ return { basePath: "./", releaseDir: "../web", action: "release", layerOptimize: "closure", optimize: "closure", cssOptimize: "comments", mini: true, stripConsole: "all", packages: [ { name: "myapp", location: "myapp" } ] }; })(); And this is the package.json inside the folder myapp : { "dojoBuild": "myapp.profile.js", "name": "my-app", "description": "This is My App", "version": "1.0", "main": "src" } And