Results 1 to 4 of 4

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

  1. #1
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    589
    Vote Rating
    10
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      -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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    589
    Vote Rating
    10
      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
    589
    Vote Rating
    10
      0  

    Default

    You can find here how I solved this problem for Bancha:
    Packaging Bancha Apps with Sencha Cmd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •