Hook that only executes when running full build


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?


Use before / after prepare hooks.


The link pasted is very helpful. Thanks!


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.