-
5 Mar 2013 1:20 PM #1
All I want is to not ship 500 classes when I probably need 1/3 of that (Help Plz)
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:
Basic skeleton app with 4 classes total generated for an app with a panel. I run it, it comes up nicely.Code:sencha -sdk /path/to/sdk generate app
Step 2: Lets build it:
Done. But wait: generated a 750kb file. Seems like all of Ext is in there.Code:sencha app build
Step 3: Lets see what's included:
488 files. WOW. This seems a bit much.Code:sencha compile -classpath=ext/src,app \ meta -filenames -out fileslist.txt
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.
-
7 Mar 2013 9:00 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Depending on what you require, it will only require what it needs.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote