PDA

View Full Version : Using custom file structure with sencha create



FoxMulder900
8 Jan 2013, 8:07 AM
I would like to use a slightly modified version of the suggested file structure for Ext Js 4.

This is the suggested structure:
- appname
- app
- namespace


- Class1.js
- Class2.js
- ...

- extjs
- resources
- app.js
- index.html


I would like to use something like this:
- appname
- js


- app.js
- app
- namespace


- Class1.js
- Class2.js
- ...

- extjs

- resources
- index.html


It's not a huge change, but the 'sencha create' command doesn't seem to like the index.html file not being in the same directory as app.js

Anyone know of a simple way to configure the tools to do this?

mitchellsimoens
10 Jan 2013, 10:38 AM
Actually, Sencha Cmd generates app.js in the app directory not in the same level as index.html.

What do you mean by sencha create?

FoxMulder900
11 Jan 2013, 5:11 AM
I guess I'm a little outdated here, I'm actually using the old Sencha SDK Tools detailed here: http://docs.sencha.com/ext-js/4-1/#!/guide/getting_started-section-3