Nativescript-cli: hooks inside app folder for template-hello-world-ng on tns create

Created on 21 Nov 2016  路  2Comments  路  Source: NativeScript/nativescript-cli

I was going to open this issue on template-hello-world-ng. However, there're no issues on that repo.

After creating a new project using the template-hello-world-ng, I've noticed that inside the project comes with a file ./app/hooks/before-livesync/nativescript-angular.sync.js, however, the same file is on the correct folder ./hooks/before-livesync/nativescript-angular.sync.js.

I was wondering if that suppose to be there or it's a new setup that I'm not aware.

To reproduce it, just run:

tns create myapp --template tns-template-hello-world-ng

PS: I've tried to check if other templates come with the hook into app folder, but none of them did, so I thought it would be worth open this issue.

bug critical

All 2 comments

Hey @leocaseiro

Thank you for reporting this issue - I have tested it on my side and can confirm that the described inconsistency is observed with

tns create myapp --template tns-template-hello-world-ng

// this will create additional hooks folder in app/

but is not observed with

tns create myapp --ng

// ok

use the shorthand as a workaround - we will investigate and apply a fix for the --template syntax.

fixed in master (2.5.0)

Was this page helpful?
0 / 5 - 0 ratings