-
Notifications
You must be signed in to change notification settings - Fork 117
Description
The desire to structure the code by using modules has been discussed in various forums. But I couldn't find a satisfying solution yet.
I know that I can place my modules somewhere on the file system where iob can find then and require them from there. But that puts the code outside of iob and somehow feels wrong to me.
I also know that I can put my classes in "global". But, apart from he fact that it is no fun to restart the adapter after every change, that just feels, well, too global.
In expert mode, I can see that all my scripts show up under objects as datapoints. That lets me think, that something like require("script.js.common.myStuff")
would be an incredibly cool function to have.
Any thoughts?
(I did my research, but I may still have missed the best. So, if you know of an already existing solution to this, please help me find it)