-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make {N} project structure configurable #3257
Comments
Agreed. I like to have my projects under |
Currently a file named "nsconfig.json" will be respected. The valid values inside it are as follows:
Both paths must be relative to the project root(where the "package.json" file and "platforms" directory are located) in order everything to work as expected. If If Examples: 1 "nsconfig.json" content:
Will result in app located at "/d/work/myapplication/test/src" and resources located at "/d/work/myapplication/test/src/App_Resources". 2 "nsconfig.json" content:
Will result in app located at "/d/work/myapplication/app" and resources located at "/d/work/myapplication/resources". 3 "nsconfig.json" content:
Will result in app located at "/d/work/myapplication/test/src" and resources located at "/d/work/myapplication/resources". 4 If no "nsconfig.json" file is present the app folder will be "/d/work/myapplication/app" and resources folder will be at "/d/work/myapplication/app/App_Resources" The option folders/files to be included/excluded in the app and to be watched during livesync (related to #887) is still not implemented. Its discussion/implementation is moved in the separate issue. |
Still does not work for me. It seems like the It seems like it still searches for the default app folder
My
|
Hi @dolanmiu, It seems that You will also need the RC versions of NativeScript CLI and Android Runtime. |
I am using I am using a mac and only got iOS setup at the moment, would that be a problem? |
Hi @dolanmiu, Having only iOS setup is a valid option and you should not have any problems. Is your project working normally with |
Thanks, setting I had weird installation issues though, I had to delete |
Hi @dolanmiu, I am glad that everything worked as expected. Most probably the full re-install was necessary for the recreation of the hooks of the plugins (they contain some changes for supporting Thank you for trying this feature. |
Hi, Not sure where I'm going wrong. I'm not well versed with NS-CLI. I have nsconfig.json that looks like this when I to build it I get the following error
tns version: 4.0.0 Thanks in anticpation. |
Another request, Is it possible to add So that, we can do: Yes, a solution would be to hide the built files etc in VSCode, but it does not seem ideal. |
Currently, a {N} project has to follow a few conventions in order to be built with {N} CLI. For example, the source code should be in a folder named
app
, the application resources should be inapp/App_Resources
and so on.The project structure should be configurable per project. For example, a project can have a
.tns-cli.json
file inside the project where the following can be specified:@angular/common
contains localization files (~17Mb) which will get deployed on the device even if they are not used.The text was updated successfully, but these errors were encountered: