javascript - Dojo: building custom configuration -



javascript - Dojo: building custom configuration -

i trying build custom dojo configuration. have admit did not understand official documentation.

this tutorial has been helpful far, though.

here file-structure:

dojo-release-1.8.3-src (untouched dojo 1.8.3 sourcecode) mycompany app (my source files incl. html, js, css-files , compiled dojo files) mycompany.profile.js package.json release // build files should go here release.profile.js

here can see how execute build script , think error happens on line 10

http://pastebin.com/embed_js.php?i=xrxiuwf2

content of of import files:

release.profile.js

var profile = { basepath: "./", releasedir: "./release", packages:[ { name: "dojo", location: "./dojo-release-1.8.3-src/dojo" }, { name: "dijit", location: "./dojo-release-1.8.3-src/dijit" }, { name: "dojox", location: "./dojo-release-1.8.3-src/dojox" }, { name: "mycompany", location: "./mycompany" } ] };

mycompany/package.json

{ "name": "app", "description": "my application", "version": "0.1" }

mycompany/mycompany.profile.js

var profile = (function(){ copyonly = function(filename, mid){ var list = { "mycompany/dojo.profile":1, "mycompany/package.json":1 }; homecoming (mid in list) || /(css|png|jpg|jpeg|gif|tiff)$/.test(filename); }; homecoming { resourcetags:{ test: function(filename, mid){ homecoming false; }, copyonly: function(filename, mid){ homecoming copyonly(filename, mid); }, amd: function(filename, mid){ homecoming !copyonly(filename, mid) && /\.js$/.test(filename); } }, trees:[ [".", ".", /(\/\.)|(~$)/] ] }; })();

i hope have provided necessary informations , can solve problem. did cost me whole day far.

compared tutorial, include directory - few things need modified.

release/profile.js

{ name: "app", location: "./mycompany/app" } mycompany/package.json should moved mycompany/app/package.json mycompany/mycompany.profile.js should moved mycompany/app/app.profile.js

in app.profile.js create next change

var list = { "app/app.profile.js":1, "app/package.json":1 };

javascript html dojo

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -