1. #1
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default How to biuld all-classes.js without extjs, to use with ext-all.js ?

    How to biuld all-classes.js without extjs, to use with ext-all.js ?


    I have application that uses three independent ext applications (huge main application, login form, less featured alternate application). If run sehcna app build for each I'll get 3 huge all-classes.js that client should load instead of load ext-all.js with login and files for each app. How can I build all-classes.js for each of three apps without extjs classes? And same for css

    Even for small login application all-classes.js is 700k , resources folder is 500k

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,327
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    When doing a build are you using an all build or the core build? (ext-all-debug.js vs ext-debug.js)
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    When running sehcna app build I can't specify extjs build , but both of them are in extjs sdk

  4. #4
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    Maybe you mean what is in index.html in x-compile section ?
    By default there was ext-dev.js , changed to ext-all-dev.js - nothing changed in output


    I'm using probably 90% of extjs components, so there is no matter to build custom extjs classes for saving 10% file size. Even worse, when my app changed user should download huge all-classes.js again instead of smaller my-classes.js

  5. #5
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    85
    Vote Rating
    0
    HyGy is on a distinguished road

      0  

    Default


    Do you have any solution to this question?

    I have an app where I want to have (in first round) an extjs-classes.js (contains all the required ext core classes) and app-all.js (contains all my application). I think this is near to the original question...

    Have you found the correct way to this?

  6. #6
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    Yes. Not sure that same possible for sencha app build, but only for scripts this command is working perfectly:
    Code:
    sencha compile exclude -file **/extjs/src and concat -compress ../web/app-all.js
    Than I need include ext-all.js and app-all.js and all's working

  7. #7
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    85
    Vote Rating
    0
    HyGy is on a distinguished road

      0  

    Default


    Thanks this is almost good. But now it is missing:

    Extensible.calendar.data.EventMappings

    any idea?

  8. #8
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    Probably you have to include Extensible src in classpath , or include it togather with ext-all.js

  9. #9
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    85
    Vote Rating
    0
    HyGy is on a distinguished road

      0  

    Default


    In my application I using the calendar
    with xtype: 'extensible.calendarpanel'

    there is an extensible-all.js file which contains all the necessery components (but unfortunately this is not compatible with to sencha cmd 3 compile strutcure). If I load the extensible-all.js after extjs and before my application this is working without "compile". So somehow I need to exclude all the references (trough xtypes) to the calendar, because it will be loaded before the application from the index.html. Any idea?

  10. #10
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    I've used Extensible lib only minor times, but cant see why its incompatible with sencha cmd, have you tried to add extensible-1.5.1/src/ to classpath and try to compile?

    Although note my post here - you might try to create sencha app project and run all commands from it, because at least compiling works different if running from app or custom folder

Thread Participants: 2