I have came from writing highly object orientated code to writing javascript so i find it weird how Meteor compiles all its javascript into one big javascript file.
My issue is that I have two JavaScript files, OpenIDService.js and SteamOpenIDService.js, SteamOpenIDService.js contains a class and so does OpenIDService.js. The SteamOpenIDService
class inherits from the OpenIDService class but to inherit from a different javascript file I need to include/import/require the other javascript file but I am lead to believe that Meteor does not support the 'require' function and instead it includes files in a certain order based of the folder structure which I find highly confusing.
A bit about the folder structure...
- ./server/lib/OpenIDService.js
- ./server/lib/SteamOpenIDService.js
- ./server/init.js
The file init.js references the SteamOpenIDService class.
How can I make meteor include/import/require OpenIDService
into the SteamOpenIDService file?