![]() ![]() However, if you provide preinstall / postinstall scripts, they will be executed before getting removed. Notably, scripts property content is removed. Do not expect that everything you place in your package.json will be transferred to the actual package.json file. Note this is not the actual root package.json of the generated mobile app – it is only used by the ns create CLI command upon app creation. Place a package.json file in the root folder of your app template. When the actual app is created from the template, all of the template's code will indeed go inside a root app folder, but you MUST NOT define this folder in the hierarchy of your template otherwise, the ns create CLI command will not function properly. scss/css, etc.).Īvoid putting all of your app template's code in a root folder named app. This helps make the app cleaner, easier to read and maintain, and more testable.Ĭonsider creating a folder for a page when it has multiple accompanying files (.ts. Apply the single responsibility principle (SRP) to all pages, all view models, all services, and other symbols. Place each page, each view model, and each service in a separate file. ![]() ![]() Each featured area should be placed in a separate folder in the template's folder structure. Cd template-blank-ts npm i ns run android # start making code changes Guidelines # Template Structure Guidelines #Ĭreate folders named for the feature area they represent. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |