PDA

View Full Version : [CLOSED] Compile and concatenate only app files with v3.0.0.230



vadimv
6 Nov 2012, 6:06 AM
trying with:


sencha compile -classpath=app union -r -namespace MyAppNamespace and concat -yui minified.js


but the minified file includes Ext files also. Is this a bug in .230 (MacOSX 10.6.8) or the command is wrong ?

EDIT: hmmm, seems that this one gives the expected output:


sencha compile -classpath=app exclude -all and include -namespace MyApp and concat -yui minified.js

burnnat
6 Nov 2012, 6:40 AM
The "class" option is used to specify individual class names. If you're trying to include classes matching MyAppNamespace.*, you'll want to use the "namespace" option instead, like so:

sencha compile -classpath=app union -r -namespace MyAppNamespace and concat -yui minified.js

vadimv
6 Nov 2012, 7:02 AM
burnnat, yes I noticed and reedited the post and just now saw your post, and also just now figured out with another cmd which seems to work

dongryphon
6 Nov 2012, 11:45 PM
The "union -r" command is a full dependency (r=recursive) inclusion so it will include all files you specify and all files they require or use.

It sounds like you don't really want a dependency scan, just an ordering of the files in your namespace, so the command you picked should work for that but it will be all files in that namespace, regardless of whether you use them or not.

vadimv
7 Nov 2012, 1:38 AM
It sounds like you don't really want a dependency scan, just an ordering of the files in your namespace, so the command you picked should work for that but it will be all files in that namespace, regardless of whether you use them or not.
Right, I needed only applications' code without extjs's dependencies/code. Since I'm trying/testing and multiapp approch: http://www.sencha.com/forum/showthread.php?133087-Multiple-Ext.Applications-(Big-Applications)/page5

We are getting used with Sencha Cmd, thx for this great tool.

Christiand
16 Nov 2012, 8:26 AM
This is somewhat what I was looking for, however I get error



[ERR] Failed to find file for @core required by path/myfile.js


Can't find any mention to what @core is

dongryphon
16 Nov 2012, 11:58 AM
This is somewhat what I was looking for, however I get error



[ERR] Failed to find file for @core required by path/myfile.js


Can't find any mention to what @core is

Can you post your command line and some details about your app/setup? I believe this is because you don't have the core framework in your classpath...

Christiand
16 Nov 2012, 1:02 PM
Thanks,

actually found the problem. I had removed the sub folder "cmd" from the ext folder.