Looking for the best way to import a folder


#1

Hi, as some of you know, i’m building some boilerplates to show off Meteor in combination with Vue. To make a ‘scalable’ example I would like to have some kind of ‘features’ folder that contains plugable features (folders / modules or whatever you want to call them). I have a core file that I want to use to include all features automatically without having to add them to some kind of index. Actually exactly like this some babel plugins do:

I’ve tried using this with Meteor, but it fails with an error. Does anyone of you have some kind of Meteor way to do this? Maybe enable Meteor’s good old include anything on a specified folder?

@benjamn