1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    13
    Vote Rating
    0
    gamani is on a distinguished road

      0  

    Default simple noob question regarding sencha cmd 3

    simple noob question regarding sencha cmd 3


    Hi guys,

    I've seen the doc for sencha v2 to get all my mvc .js in one all-classes.js file.
    But, how can i do it with sencha cmd 3.

    I've already tried my app on androidEmulator and im waiting minimum 4 seconds to load the interface...
    Any advice ?

  2. #2
    Sencha User lsdriscoll's Avatar
    Join Date
    Jan 2012
    Location
    Bournemouth, UK
    Posts
    27
    Vote Rating
    15
    lsdriscoll will become famous soon enough

      0  

    Default


    Hi ^_^

    You can use
    Code:
    sencha compile --classpath=src1,src2,src3 concatenate --compress --output-file all-classes.js
    ref: http://docs.sencha.com/ext-js/4-1/#!...nce-section-13

  3. #3
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,346
    Vote Rating
    134
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    Quote Originally Posted by gamani View Post
    Hi guys,

    I've seen the doc for sencha v2 to get all my mvc .js in one all-classes.js file.
    But, how can i do it with sencha cmd 3.

    I've already tried my app on androidEmulator and im waiting minimum 4 seconds to load the interface...
    Any advice ?
    How are you building your app? If you are using "sencha app build" then you should get this file generated in the build/testing (or build/production etc) folder.

    If you have the .senchasdk file generated by SDK Tools v2 in your app, you should be able to run "sencha app upgrade /path/to/sdk" and get the necessary scaffolding produced to run "sencha app build".
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  4. #4
    Sencha User
    Join Date
    Jan 2013
    Posts
    13
    Vote Rating
    0
    gamani is on a distinguished road

      0  

    Default


    This helped :

    Go through these steps.

    1. Back everything up
    2. If js/src is your Ext Source folder (I assume it is), delete it.
    3. Download the entire zip of the version of ext you need and extract locally
    4. cd into the extracted folder and run 'sencha generate app AppName /path/to/app/directory'
    5. In your index.html, correct the path to Ext. It should now be ext/ext-dev.js
    6. If no errors, do 'sencha app build'

    Thx to lsdriscoll for the tip !

Thread Participants: 2