I've been using meteor for a little while now, and am running into an unexpected behavior I've got my file system set up like:
-workspace
-client
-server
-shared
-shared.js
Inside of shared.js I create my mongo collections:
Collection= new Mongo.Collection('collection');
I can then reference them as global variable from anywhere in my app. The interesting part is: I never once use the word 'shared' in my project, meaning, I never imported this file, I never required this file, it's loading by itself, and working without ever being told to.
I'm currently trying to replicate this in another project, to no avail. Could anyone explain why it's loading in one project, and not another? And how I might get this behavior in my second project?
After looking into it, it appears that in my second project, shared.js is never loaded at all.