Lib folder, executed first?


#1

I know that the contents of /lib are executed before anything else, but is it just /lib at the root level? Or, for example, are the contents of /client/lib executed before any other code in /client?


#3

I think lib will be executed first when it is among another directory at the same level.
And for nested lib it will subject for alphabetical order of directory name.

I tried this:

root (Meteor project dir) /
    client /
        lib /    
    lib /
        lib /
    server / 
        lib /

I create js file inside each directory, which is in each js file I just print to console.

Server load order:

lib/lib
server/lib
lib
server

Client load order:

client/lib
lib/lib
lib
client

#4

Cool, thanks @agusputra