ForestAdmin / forest-express-mongoose

🌱 ExpressJS/Mongoose agent for Forest Admin to integrate directly to your existing ExpressJS/Mongoose backend application.
https://www.forestadmin.com
GNU General Public License v3.0
193 stars 28 forks source link

Allow reading only specific files #123

Closed roopakv closed 6 years ago

roopakv commented 6 years ago

Expected behavior

Currently our models directory has tests associated with the model and 2 other utils files. Should be able to point to directory and let the liana read only a whitelisted set of files and ignore all other files.

Actual behavior

Even if we specifically say to only include "request" and "user" it reads all the other files and breaks, because the dependencies for mocha are not present.

Context

roopakv commented 6 years ago

Oh nvm. modelsDir is not required. Just saw https://github.com/ForestAdmin/forest-express-mongoose/issues/43