Note that there are some explanatory texts on larger screens.

plurals
  1. PODojo 1.8 and builds (or lack thereof)
    primarykey
    data
    text
    <p>I really have no idea where to begin. </p> <p>I've gone through every tutorial, article, and blog post to try and get the one thing that dojo has going for it working, and never have I had such a problem getting something to work, at least just a little. I've found flame wars over documentation as well as people with working scripts, but nothing posted or outlined. At SO, I've found that it's a very common issue, but no resolve half the time. </p> <p>Disclaimer: Forget 1.6. I never used 1.6. Therefore, half my resources found online are void, and so is my book. Here we go.</p> <h1>Question 1</h1> <p>What's the difference between a LOT of posts about using this format:</p> <pre><code>dependencies = { stripConsole: "all", action: "release", optimize: "shrinksafe", // Omitted options... layers: [{ name: "dojo.js", customBase : true, dependencies: [ "dojox.gauges.AnalogNeedleIndicator", "myApp.smartmix"] } ], prefixes: [ [ "dijit", "../dijit" ], [ "dojox", "../dojox" ], [ "myApp", "../../../myApp" ] ] }; </code></pre> <p>...vs this format:</p> <pre><code>var profile = { basePath: './', stripConsole: 'all', selectorEngine: 'lite', layers: { 'dojo/dojo': { include: ['dojo/dojo', 'dojo/domReady', 'dojo/_base/declare'], boot: true, customBase: true }, 'dgrid/dgrid': { include: ["dgrid/List", "dgrid/OnDemandGrid", "dgrid/Selection", "dgrid/Keyboard", "dgrid/test/data/perf"] } } // static-has-features removed }; </code></pre> <p>There are two very important differences in the <code>layers</code> object between the two that either A) Everyone seems to just "know" about without any reason or rational, or B) People just seem to "know". I have yet to find anything written about the differences between the two syntax (syntaxis? syntax's?) that have anything to do with the new AMD structure and the rewrite of the build system. </p> <p>The closest I've seen is the object name doesn't matter, nor does the declaration. It can be a "global" variable (omission of the <code>var</code> keyword), or not, the name doesn't matter so long as the object returned contains the necessary information.</p> <p>The second format gives me an "unexpected String" error and fails 99% of the time, even with copy/pasted profiles.</p> <h1>Question 2</h1> <p>What exactly is required?! The Dojo's documentation says a package.json AND a appName.profile.js file is REQUIRED, but in all the tutorials I've seen, only the profile is required, and used, for that matter. Therefore, half the information at the Dojo's main website about building isn't used. So........?</p> <p>The Dojo site says to use the <code>src</code> release for builds. A guy at Nabble said you must get the <code>svn</code> version as the src version is already "built".</p> <p>... so who's on first?</p> <h1>Question 3</h1> <p>Does anyone, anyone at all, have a working directory structure and <code>profile.js</code> file they'd care to share? I have tried EVERYTHING. And I do mean EVERYTHING, to get a build. One suggestion was to use an empty profile object. That works, and it's useless.</p> <p>Another suggestion was to use the dojo boilerplate build. What good is a template if any alteration breaks it? <strong>What have you tried</strong> is a moot point as I've tried, in the words of Tony Stark, "every permutation of every known [javascript object variation]. Nothing works."</p> <p>I'm losing faith quickly. Not because I can't figure it out after hours of trial-and-failure, but because a lot of people are in the same boat. It's sinkin'.</p> <h2>Final Question</h2> <p>So, my last request is, can someone, PLEASE shed some light on how this build system works, and not just links to the already-purpled-out-read-and-re-read links one would find on Google?</p> <p>How... do you... configure a Dojo build profile... and execute it... without error?! It's insane how bad this system is both A) documented and B) implemented, and while I'm at it C) taught. It's exhausting.</p> <p>Some of the (many) sites I've visited:</p> <ul> <li><a href="http://dojo-toolkit.33424.n3.nabble.com/custom-build-error-quot-location-is-not-defined-quot-td3986136.html" rel="noreferrer">Nabble SVN vs. SDK</a></li> <li><a href="http://www.sitepen.com/blog/2012/06/11/dgrid-and-dojo-nano-build/" rel="noreferrer">SitePen tutorial that... doesn't produce.</a></li> <li><a href="https://github.com/csnover/dojo-boilerplate/blob/master/profiles/app.profile.js" rel="noreferrer">One "Boilerplate" Profile (from SitePen)</a></li> <li><a href="https://github.com/csnover/dojo-boilerplate" rel="noreferrer">Dojo Boilerplate Profile (github)</a></li> <li><a href="http://dojotoolkit.org/documentation/tutorials/1.8/build/" rel="noreferrer">Dojo Tutorial</a></li> </ul> <h2>Update</h2> <p>Many thanks to @xesxz and @Craig Swing. After a few minor things, I've got a build profile that chunks away and gives me what I need!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload