1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    97
    Vote Rating
    4
    Answers
    3
    FoxMulder900 is on a distinguished road

      0  

    Default Unanswered: Using custom file structure with sencha create

    Unanswered: Using custom file structure with sencha create


    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?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Aug 2008
    Posts
    97
    Vote Rating
    4
    Answers
    3
    FoxMulder900 is on a distinguished road

      0  

    Default


    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/#!...rted-section-3