Hook that only executes when running full build


#1

I couldn’t find any topic explaining how hooks work in NativeScript except the nativescript-hook module which isn’t much help.

I have a hook that should only be run when a full build takes place( eg: tns platform remove ios && tns run ios kind of full build ). how do I configure this or which folder do I put this into?


#2

Use before / after prepare hooks.


#3

The link pasted is very helpful. Thanks!


#4

Thanks. I had already read this one at the time of posting the question. I wanted hooks which executed only on full build but that isn’t an option. I used before-livesync hook instead.