1. #1
    Sencha Premium Member
    Join Date
    Jul 2011
    Location
    Lambare - Paraguay
    Posts
    3
    Vote Rating
    0
    p431i7o is on a distinguished road

      0  

    Question Answered: the old way vs the new way -- compile extjs4

    Answered: the old way vs the new way -- compile extjs4


    Hi, I was working previously with EXTjs 4.01, 4.02, 4.0.7 and now with 4.1


    Starting with the 4.0.7 I was using the "compiler" of Sencha, and results were great

    We have the application (web) with a size of 600kB all compressed and working, just with the commands:

    Code:
    sencha create jsb -a http://myApp/ -p app.jsb3
    editing the name of the company and little changes to the jsb3 file and then doing:

    Code:
    sencha build -p app.jsb3 -d .
    and then moving the generated files to the "build" folder

    Code:
    move all-classes.js client/build/all-classes.js
    Code:
    move app-all.js client/build/app-all.js
    and then in our project just changing the files to use those files instead of a normal "development" stage, in wich only the ext.js core file and the app-all.js file will be loaded.

    Now I migrated our 4.0.7 to the 4.1.2a and in "developing stage" it does work great, doing the load as it need the files.

    But now I started to "compile" and found the Sencha Cmd, that is replacing our "old" way to compile

    My question, is how I do to get the same result as before, I have read all
    that I found on the local docs like

    "Developing Multi-Page Ext JS Apps"
    "Advanced Sencha Cmd"
    "Sencha Compiler Reference"

    but I am very confused now

    Please, can someone help me?
    I read several pages on the forum, but found nothing on how to deal with this.

    What I'm trying to do is just, group all files of our MVC project and EXTjs core in a small compresed file.

    If there is a thread of this, or a page, or a video, anything, I would apreciate it.

  2. To use Sencha Cmd to it's fullest you should generate an app with Cmd and copy your app files over. To generate do this:

    Code:
    cd /path/to/extjs
    sencha generate app MyAppName /path/to/MyAppName
    Then to build you simply do this:

    Code:
    cd /path/to/MyAppName
    sencha app build

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,397
    Answers
    3549
    Vote Rating
    849
    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


    To use Sencha Cmd to it's fullest you should generate an app with Cmd and copy your app files over. To generate do this:

    Code:
    cd /path/to/extjs
    sencha generate app MyAppName /path/to/MyAppName
    Then to build you simply do this:

    Code:
    cd /path/to/MyAppName
    sencha app build
    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.

  4. #3
    Sencha Premium Member
    Join Date
    Jul 2011
    Location
    Lambare - Paraguay
    Posts
    3
    Vote Rating
    0
    p431i7o is on a distinguished road

      0  

    Default


    Thanks, that was what I wanted to know.

Thread Participants: 1

Tags for this Thread