How to use Modules in Meteor the Simple way?


#1

Greetings,

I’m looking for the most simple straightforward approach to using modules in meteor. I have explored with universe:modules and attempted rocket:modules as well as a Package only approach.

All of these attempts proved to be a mind wrecker and left me without a solution.

Essentially i’m looking for something basic. I’d like to define modules within my current application and simply only “require” or “use” bits and pieces of my application to limit redundant loading of code i dont need.

For example I have a few collections that are using aldeed:simpleschema. I only want to use the products collection for my products view so this is a great way to only include the collection when I need it for products and vice versa. I’m sure that is probably a bad example so any advice and/or guidance would be greatly appreciated.

Ryan