Hybrid View

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    654
    Vote Rating
    26
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default Compile and concatenate only app files with v3.0.0.230

    Compile and concatenate only app files with v3.0.0.230


    trying with:
    Code:
    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:
    Code:
    sencha compile -classpath=app exclude -all and include -namespace MyApp and concat -yui minified.js

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Vote Rating
    61
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default


    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

  3. #3
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    654
    Vote Rating
    26
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    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

  4. #4
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,512
    Vote Rating
    176
    dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of dongryphon has much to be proud of

      0  

    Default


    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
    Engineering Manager - Frameworks (Ext JS / Sencha Touch)

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  5. #5
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    654
    Vote Rating
    26
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    Quote Originally Posted by dongryphon View Post
    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/showthre...cations)/page5

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

  6. #6
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montréal, Canada
    Posts
    221
    Vote Rating
    5
    Christiand is on a distinguished road

      0  

    Default


    This is somewhat what I was looking for, however I get error

    Code:
    [ERR] Failed to find file for @core required by path/myfile.js
    Can't find any mention to what @core is