Convert rules to Google Apps Script

To take myself entirely onto the cloud; I'm wanting to convert all of my Hazel rules into Google Apps Script (a cloud-based JavaScript platform) that will run on my Google Drive.
Does anyone have any shortcuts for doing this, e.g.:
- Details on the internal structure of the exported rules files
- How I might automatically convert the rules into JavaScript, hence making the transition to Apps Script easier
Any help would be appreciated.
Thanks in advance,
Andrew
Does anyone have any shortcuts for doing this, e.g.:
- Details on the internal structure of the exported rules files
- How I might automatically convert the rules into JavaScript, hence making the transition to Apps Script easier
Any help would be appreciated.
Thanks in advance,
Andrew