Override Deploy event (triggered from Editor) in Node-RED

Hello all,

I am trying to perform some logics when we click the 'Deploy' button on top of our Editor. I am habitual of using lifecycle hooks (like we have in angular, ember, etc.). So I am trying to find some functions which a developer can override and get his/her job done. I tried looking through the docs, for example this one - https://nodered.org/docs/api/modules/v/0.20.0/@node-red_editor-api.html, but I am not sure yet. Can someone guide me. I am not finding any examples too!

Thanks in advance for any suggestion!