I’m experimenting with Google AppScript using Haxe (made possible by Tong’s great externs: google-apps-script (0.2.0)).
There are some AppScript specific callbacks expected to live in the global scope, for example onEdit(event) wich is called whenever a spreadsheet cell is changed.
Yes, I found clasp the other day, and that got me into trying Haxe for app scripts as well as for anything else…!
Using includeFile works fine. Anothe way is to just use a separate .gs file for the triggers, and forward the events to the haxe generated code from there.