Results 1 to 2 of 2

Thread: Where can I find the complete specification for CMD 5.0.3 app.json config parameters?

  1. #1
    Sencha Premium User
    Join Date
    Dec 2010
    Posts
    217

    Default Where can I find the complete specification for CMD 5.0.3 app.json config parameters?

    Hi,
    I'm struggling trying to figure out how to configure the output configuration object in app.json.

    Is there a doc somewhere that explains what all the supported config parameters are and what they mean?


    "base": "${workspace.build.dir}/${build.environment}/${app.name}",
    "page": { // generate production loader page - other option is http://www.sencha.com/forum/showthread.php?293891
    "path": "..\..\..\..\..\Portal.aspx",
    "enable": true
    },
    "manifest": { // http://docs.sencha.com/cmd/5.x/microloader.html
    "name": "bootstrap.js",
    "embed": true
    },
    "microloader": {
    "path": "microloader.js",
    "embed": false,
    "enable": false
    }


    Specifically I'm trying to setup my application so I can compile against multiple themes (desktop, tablet etc) and I want to have ONE Portal.aspx page in the root of my website load the appropriate theme (build) dynamically based on the client platform/browser.

    From what I gather I need multiple builds of the app, each generated in a subfolder within root/myapp/build/build{x}
    Each time I do a build my Portal.aspx ("page") gets clobbered by the build. I found sample JS to set the manifest in the portal.aspx (my version of index.html) but it's not clear how I need to configure my app.json to multiple builds.


    Here's the client code sample I foind in the forums.

    <script type="text/javascript">
    var Ext = Ext || {};
    Ext.repoDevMode = true;
    Ext.beforeLoad = function(tags){
    var theme = location.href.match(/theme=([\w-]+)/),
    locale = location.href.match(/locale=([\w-]+)/);


    theme = (theme && theme[1]) || (tags.desktop ? 'crisp' : 'crisp-touch');
    locale = (locale && locale[1]) || 'en';


    Ext.manifest = theme + "-" + locale;
    Ext.microloaderTags = tags;
    };
    </script>--%>

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

    Hi,

    The microloader guide gets close, though it doesn't walk you through completely setting up the app.json to work with dynamically loaded themes.

    Can you post your app.json file? Can you also post your Portal.aspx page (if that is your 'index' page)?

    *There is a request filed internally to improve the microloader guide to offer this information as well as a guide that walks through the options available in app.json. In the meantime, the closest we have is the comments found in {appFolder}/.sencha/app/app.defaults.json

Posting Permissions

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