Hybrid View
-
6 Nov 2012 6:06 AM #1
Compile and concatenate only app files with v3.0.0.230
Compile and concatenate only app files with v3.0.0.230
trying with:
but the minified file includes Ext files also. Is this a bug in .230 (MacOSX 10.6.8) or the command is wrong ?Code:sencha compile -classpath=app union -r -namespace MyAppNamespace and concat -yui minified.js
EDIT: hmmm, seems that this one gives the expected output:
Code:sencha compile -classpath=app exclude -all and include -namespace MyApp and concat -yui minified.js
My blog: http://vadimpopa.com
-
6 Nov 2012 6:40 AM #2
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:
Code:sencha compile -classpath=app union -r -namespace MyAppNamespace and concat -yui minified.js
-
6 Nov 2012 7:02 AM #3
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
My blog: http://vadimpopa.com
-
6 Nov 2012 11:45 PM #4
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.Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
7 Nov 2012 1:38 AM #5
Right, I needed only applications' code without extjs's dependencies/code. Since I'm trying/testing and multiapp approch: http://www.sencha.com/forum/showthre...cations)/page5
We are getting used with Sencha Cmd, thx for this great tool.My blog: http://vadimpopa.com
-
16 Nov 2012 8:26 AM #6
This is somewhat what I was looking for, however I get error
Can't find any mention to what @core isCode:[ERR] Failed to find file for @core required by path/myfile.js
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote