A compiler ultimately is all about writing useful output given some number of inputs. The concat command is designed to concatenate the source for the current set of files in the appropriate dependency order.
The one required parameter is -out, which indicates the name of the output file. There are other options, however, that effect the generated file. You can pick one of the following options for compression:
I am trying to achieve the "appropriate dependency order". The docs go on to talk about sets. Not how to order those sets?
The one required parameters is not present ?!! Is this is a doc error, is the one required parameter is concat ?
I find nothing else on the page that talks about controlling the order.
Seems to me in the prior version of Cmd, output followed the same order as the comma delimited list of classpaths. Or it did for me!
But not now?
Code:$ cat alpha/alpha.js alert('alpha'); $ cat beta/beta.js alert('beta'); $ sencha compile -classpath=alpha,beta concat ab.js Sencha Cmd v18.104.22.168 [INF] Scanning for extensions in /Users/steward/bin/Sencha/Cmd/22.214.171.124/extensions [INF] Loaded extension sencha-compass [INF] Loaded extension sencha-io [INF] Loading classpath entry /home/steward/public_html/alpha [INF] Loading classpath entry /home/steward/public_html/beta [INF] Concatenating output to file ab.js $ cat ab.js alert('alpha'); alert('beta'); $ sencha compile -classpath=beta,alpha concat ba.js Sencha Cmd v126.96.36.199 [INF] Scanning for extensions in /Users/steward/bin/Sencha/Cmd/188.8.131.52/extensions [INF] Loaded extension sencha-compass [INF] Loaded extension sencha-io [INF] Loading classpath entry /home/steward/public_html/beta [INF] Loading classpath entry /home/steward/public_html/alpha [INF] Concatenating output to file ba.js $ cat ba.js alert('alpha'); alert('beta');
Just out of curiosity, why are both outputs the same? There is nothing to distinguish order except the order in which they were encountered?
I want my license verbiage at the start of the output. How to?
I return to http://docs.sencha.com/ext-js/4-2/#!...and_app_single
"These dependencies are expressed in code using Ext.define and the requires (or uses) directives."
So I add to my app:
I verify the file loads normally, refresh the project...Code:Ext.require('Yap.blurb.License')
Aw heck. I have the feeling I am wandering into deep space.
Is this something we are to control in the build/xml/ant part?
What have I missed? Where in the docs? Have I misinterpeted the statement about "appropriate dependcy order". I just want order!
As the man on the Titantic shouted before he shot himself, "Order I say!"
Help. Please. Thank you.