1. #1
    Sencha User
    Join Date
    Jul 2009
    Posts
    61
    Vote Rating
    3
    ibnesayeed is on a distinguished road

      0  

    Default Effectively Using app.json File Generated By Sencha Cmd In ExtJS

    Effectively Using app.json File Generated By Sencha Cmd In ExtJS


    I have tried searching in the forum, blog, documentation and learning resources but could not find a resource that describes how can we use app.json file in ExtJS 4.2 that was generated by Sencha Cmd. By default it has following JSON bits.
    Code:
    {
        "name": "MyApp"
    }
    From there, we have no clue what are the other possible attributes that can go in this file and how are they going to affect development and build process. A detailed documentation will be great help.

    Or at least a feature request should be added in Sencha Cmd to put various possible configuration options and their explanations in comments at the time of app.json file generation.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,994
    Vote Rating
    183
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      -1  

    Default


    The app.js file will contain a skeletal implementation of an Ext.app.Application. You can check out the documentation here on how to configure the application itself.

    Cmd will set up the folder structure and a few template files (controller and view) to get you started. For a great guide on how to continue setting up the application using the structure created by Cmd you might check out these guides:

    http://docs.sencha.com/ext-js/4-2/#!/guide/mvc_pt1
    http://docs.sencha.com/ext-js/4-2/#!/guide/mvc_pt2
    http://docs.sencha.com/ext-js/4-2/#!/guide/mvc_pt3

  3. #3
    Sencha User farion's Avatar
    Join Date
    Feb 2008
    Location
    Karlsruhe, Germany
    Posts
    75
    Vote Rating
    11
    farion will become famous soon enough

      2  

    Default


    The question was about app.json, not app.js.

    Unfortunately there is really no documentation about using app.json with ExtJS.

  4. #4
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,994
    Vote Rating
    183
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    After the application is generated I'd think you'd just build your app out (either starting with the generated files or with your own created files) and then compile the app. What are you looking to edit via a config file?

  5. #5
    Sencha User
    Join Date
    Jul 2009
    Posts
    61
    Vote Rating
    3
    ibnesayeed is on a distinguished road

      2  

    Default


    Thanks for the reply. I have gone through the MVC guides and other documentation listed above a dozen time and they were all great and very helpful. But as @farion mentioned above that the question was not about app.js but it was about the app.json file found in the root direction of an application generated by Sencha Cmd.
    Quote Originally Posted by slemmon View Post
    After the application is generated I'd think you'd just build your app out (either starting with the generated files or with your own created files) and then compile the app. What are you looking to edit via a config file?
    In fact this is the question, how to use that config file? Is this something useful (right now or in near future?) Is it just a redundant file that has no purpose in usual cases? Is it something that is being used when packaging application as native apps? If so then where are further details and documentation about it? :-)

Thread Participants: 2

Tags for this Thread