1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    7
    Vote Rating
    0
    ttback is on a distinguished road

      0  

    Default Unable to have files [] in jsb3 generated

    Unable to have files [] in jsb3 generated


    I tried to use sencha create jsb on some of my project but the files[] are always empty like below:


    Code:
     {    "projectName": "Project Name",
        "licenseText": "Copyright(c) 2011 Company Name",
        "builds": [
            {
                "name": "All Classes",
                "target": "all-classes.js",
                "options": {
                    "debug": true
                },
                "files": []
            },
            {
                "name": "Application - Production",
                "target": "app-all.js",
                "compress": true,
                "files": [
                    {
                        "path": "",
                        "name": "all-classes.js"
                    },
                    {
                        "path": "",
                        "name": "app.js"
                    }
                ]
            }
        ],
        "resources": []
    }
    My project looks fine in Browser and I had Ext.Required specified, but files[] always empty.
    Is there any prerequisite to use the Sencha SDK for build?

    Does it require MVC structure to work?

    I attached the source I have for now. If you can replicate the problem on your end, it would probably be easier to answer what's wrong.
    https://github.com/ttback/Ext4Poc

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

      0  

    Default


    It seems to work bets in MVC but isn't required. It should evaluate the Ext.require and the different require properties and follow those classes.
    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
    Join Date
    Mar 2012
    Posts
    7
    Vote Rating
    0
    ttback is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    It seems to work bets in MVC but isn't required. It should evaluate the Ext.require and the different require properties and follow those classes.
    I had only one require on top of main.js (basically the app.js in examples).
    Like Ext.require(['Ext.Viewport','Ext.data.TreeStore']);

    I updated later to have the require include grid and tree as well. But there is no difference in output jsb3 file no matter how I tweak the require. Do I have to do something more than this?

Thread Participants: 1