Results 1 to 2 of 2

Thread: All I want is to not ship 500 classes when I probably need 1/3 of that (Help Plz)

  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    15
    Vote Rating
    0
      0  

    Default All I want is to not ship 500 classes when I probably need 1/3 of that (Help Plz)

    Basic question: How do I exclude all the extra EXT classes? Seems like either I use the 'exclude' keyword (manage dependencies manually) or it'll always pick up all of Ext.

    Can someone help with a command that excludes the extra classes for a basic app generated using Sencha Cmd (see step: 1 below).

    Any pointers or a command I can try to get past this would be awesome.

    cmd version: Sencha Cmd v3.0.2.288
    ExtJs version: 4.1.1a

    Stuff I tried:

    Step 1:
    Code:
    sencha -sdk /path/to/sdk generate app
    Basic skeleton app with 4 classes total generated for an app with a panel. I run it, it comes up nicely.

    Step 2: Lets build it:
    Code:
    sencha app build
    Done. But wait: generated a 750kb file. Seems like all of Ext is in there.

    Step 3: Lets see what's included:
    Code:
    sencha compile -classpath=ext/src,app \    meta -filenames -out fileslist.txt
    488 files. WOW. This seems a bit much.

    Step 4,5,6,6,7...
    Tried a lot of things, including manually excluding files but no luck. Manual exclusion works for a few packages but the approach to manually list and figure out dependencies just isn't scalable.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Depending on what you require, it will only require what it needs.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •