1. #1
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default How to include Ext.Direct into Sencha CMD 3 build process?

    How to include Ext.Direct into Sencha CMD 3 build process?


    Hello!

    My current app.json js config is
    Code:
    [{
        "path": "extjs/extjs.js"   /* first load the framework, we need this for the
                                      Ext.ns function in the Ext.Direct api*/
      }, {
        "path": "/direct-api.js",  /* now include the diret api */
        "remote": true
      }, {
        "path": "app.js",
        "bundle": true,            /* class dependencies are all concatenated 
        "update": "delta"             into this file when build */
     }]
    This works fine with the microloader, but when I make a production build the direct-api.js is executed before Sencha Touch is loaded and I get a Ext.ns is not a function error.

    How can I solve this? Is there maybe a nice way to pack Ext.Direct api into the app.js?

    Thanks
    Roland

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

      -1  

    Default


    You mention before ExtJS is loaded, is this question really for Sencha Touch 2 as Ext JS 4 doesn't use app.json?
    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
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    Sorry, this was a typo. I was referring to the Ext class. I'm taking about Sencha Touch 2.1.0 and the latest Sencha CMD

  4. #4
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    581
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default


    You can find here how I solved this problem for Bancha:
    Packaging Bancha Apps with Sencha Cmd
    Roland Sch├╝tz
    Software Architect
    ---
    Bancha - Seamless integrate CakePHP with ExtJS and Sencha Touch

Thread Participants: 1