reusable default hooks for cordova cli