Two “app” folders in CLI-created projects

5 posts, 1 answers
  1. TJ
    TJ avatar
    58 posts
    Member since:
    Aug 2013

    Posted 19 Jan 2015 Link to this post

    Hey all,

    It's a little weird that CLI-created projects generate an app folder within an app folder. I'm working on a video where I explain the folder structure, and no matter how hard I try, every explanation of that sounds silly.

    The folder structure makes sense in a Platform project, where the outer folder isn't visible, but from the CLI it's odd. Can the outer “app” folder be named something else—“project”, “dev”, something—or could the inner app folder be removed?

    I'm more of a fan of removing the inner app folder. In AppBuilder hybrid projects the App_Resources folder is a sibling of application code (e.g. index.html, etc), and there doesn't seem to be a need for the inner app folder in NativeScript projects. I would actually expect my app.js, bootstrap.js, etc to be siblings of my package.json.

    Anyways, I realize you've probably been over directory structure a lot and I'm coming in late, but I wanted to let you know that having basically all of your code in an app/app folder is odd, and hard to explain when giving an introduction to NativeScript. I'd welcome any change that makes that easier.

    TJ
  2. Valio
    Valio avatar
    102 posts
    Member since:
    Jun 2006

    Posted 20 Jan 2015 in reply to TJ Link to this post

    Hi TJ,


    The folder structure makes sense in a Platform project, where the outer folder isn't visible, but from the CLI it's odd. Can the outer “app” folder be named something else—“project”, “dev”, something—or could the inner app folder be removed?


    yes - this is planned for our Beta release.

    thanks!
  3. TJ
    TJ avatar
    58 posts
    Member since:
    Aug 2013

    Posted 20 Jan 2015 in reply to Valio Link to this post

    Wait, which change is happening? Is the outer app folder being renamed or is the inner one being removed?
  4. Answer
    Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 21 Jan 2015 Link to this post

    Hi TJ,

    The inner app folder is being removed. Thus, there will be no "app" folder convention in the platform-specific projects. The application-specific files will reside in the project root.

    Best regards,
    Erjan Gavalji
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. TJ
    TJ avatar
    58 posts
    Member since:
    Aug 2013

    Posted 21 Jan 2015 in reply to Erjan Gavalji Link to this post

    Perfect. Thanks guys.
Back to Top