This is a migrated thread and some comments may be shown as answers.
Two “app” folders in CLI-created projects
4 Answers 9 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
TJ
Top achievements
Rank 1
TJ asked on 19 Jan 2015, 08:17 PM
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

4 Answers, 1 is accepted

Sort by
0
Valio
Top achievements
Rank 1
answered on 20 Jan 2015, 01:53 PM
Hi TJ,

[quote]
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?
[/quote]

yes - this is planned for our Beta release.

thanks!
0
TJ
Top achievements
Rank 1
answered on 20 Jan 2015, 03:47 PM
Wait, which change is happening? Is the outer app folder being renamed or is the inner one being removed?
0
Accepted
Erjan Gavalji
Telerik team
answered on 21 Jan 2015, 07:19 AM
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.

 
0
TJ
Top achievements
Rank 1
answered on 21 Jan 2015, 12:56 PM
Perfect. Thanks guys.
Tags
NativeScript Insiders
Asked by
TJ
Top achievements
Rank 1
Answers by
Valio
Top achievements
Rank 1
TJ
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or