Using imports folder in Meteor 1.3 - no need for client/server/lib folders?


#1

If I put my entire app’s code in /imports, does this mean I don’t have to use the typical folder structure of client, server, etc, since I can control exactly when things are loaded and where?


#2

you don’t necessarily need it


#3

You still need these folders if to bootstrap the loading of the import files.


#4

Right, that makes sense. So in /server there could be a file that does something like:

import '../imports/startup/server';

And that folder structure looks like:

├── startup
│   ├── client
│   │   └── routes.js
│   └── server
│       ├── fixtures.js
│       ├── index.js
│       ├── publications.js
│       ├── security.js
│       ├── slingshot-directives.js
│       └── triggers.js

#5

Yep, that’s how I’ve been doing it! :slight_smile: