Results 1 to 8 of 8

Thread: Compile and concatenate only app files with v3.0.0.230

    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
    720
    Vote Rating
    51
      0  

    Default 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
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Vote Rating
    64
      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
    720
    Vote Rating
    51
      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
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  4. #4
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,724
    Vote Rating
    248
      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
    Director of Engineering - 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
    720
    Vote Rating
    51
      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.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  6. #6
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montreal, Canada
    Posts
    255
    Vote Rating
    7
      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

  7. #7
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,724
    Vote Rating
    248
      0  

    Default

    Quote Originally Posted by Christiand View Post
    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
    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...
    Don Griffin
    Director of Engineering - 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!"

  8. #8
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montreal, Canada
    Posts
    255
    Vote Rating
    7
      0  

    Default

    Thanks,

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •