PDA

View Full Version : Unable to have files [] in jsb3 generated



ttback
8 Mar 2012, 9:54 PM
I tried to use sencha create jsb on some of my project but the files[] are always empty like below:



{ "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

mitchellsimoens
9 Mar 2012, 8:03 AM
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.

ttback
9 Mar 2012, 8:39 AM
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?