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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,070
    Vote Rating
    1394
      0  

    Default

    Depending on what you require, it will only require what it needs.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •