{"action":"created","issue":{"url":"https://api.github.com/repos/ForestAdmin/forest-express/issues/6","repository_url":"https://api.github.com/repos/ForestAdmin/forest-express","labels_url":"https://api.github.com/repos/ForestAdmin/forest-express/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ForestAdmin/forest-express/issues/6/comments","events_url":"https://api.github.com/repos/ForestAdmin/forest-express/issues/6/events","html_url":"https://github.com/ForestAdmin/forest-express/issues/6","id":172734201,"number":6,"title":"/forest directory must be at the project route.","user":{"login":"jordan-burnett","id":2143374,"avatar_url":"https://avatars.githubusercontent.com/u/2143374?v=3","gravatar_id":"","url":"https://api.github.com/users/jordan-burnett","html_url":"https://github.com/jordan-burnett","followers_url":"https://api.github.com/users/jordan-burnett/followers","following_url":"https://api.github.com/users/jordan-burnett/following{/other_user}","gists_url":"https://api.github.com/users/jordan-burnett/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan-burnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan-burnett/subscriptions","organizations_url":"https://api.github.com/users/jordan-burnett/orgs","repos_url":"https://api.github.com/users/jordan-burnett/repos","events_url":"https://api.github.com/users/jordan-burnett/events{/privacy}","received_events_url":"https://api.github.com/users/jordan-burnett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-23T15:41:12Z","updated_at":"2016-08-23T17:01:47Z","closed_at":null,"body":"At the moment when I want to add a smart field, I have to add a file to a directory called 'forest' at the route of my project, which is included when the server initializes.\r\n\r\nThis causes problems for my current set-up, where I'm using babel to transpile ES6 code, as my uncompiled code exists in a 'src' directory and therefore the directory is at 'src/forest'.\r\n\r\nThe line that enforces this is 215 in index.js:\r\n\r\n` return requireAllModels(Implementation, path.resolve('.') + '/forest')`\r\n\r\nIt would be good to be able to define this in the same way as 'modelsDir' during initialization.\r\n\r\nAn even nicer API would be if I could call liana.collection() separately in my apps existing initialization sequence.  It seems to me this would open up more options for custom setups like mine not to have to rely on putting all Forest specific code in one predetermined directory"},"comment":{"url":"https://api.github.com/repos/ForestAdmin/forest-express/issues/comments/241801873","html_url":"https://github.com/ForestAdmin/forest-express/issues/6#issuecomment-241801873","issue_url":"https://api.github.com/repos/ForestAdmin/forest-express/issues/6","id":241801873,"user":{"login":"VinzGhyz","id":433413,"avatar_url":"https://avatars.githubusercontent.com/u/433413?v=3","gravatar_id":"","url":"https://api.github.com/users/VinzGhyz","html_url":"https://github.com/VinzGhyz","followers_url":"https://api.github.com/users/VinzGhyz/followers","following_url":"https://api.github.com/users/VinzGhyz/following{/other_user}","gists_url":"https://api.github.com/users/VinzGhyz/gists{/gist_id}","starred_url":"https://api.github.com/users/VinzGhyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VinzGhyz/subscriptions","organizations_url":"https://api.github.com/users/VinzGhyz/orgs","repos_url":"https://api.github.com/users/VinzGhyz/repos","events_url":"https://api.github.com/users/VinzGhyz/events{/privacy}","received_events_url":"https://api.github.com/users/VinzGhyz/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T17:01:47Z","updated_at":"2016-08-23T17:01:47Z","body":"Anything that is under the Forest folder is automatically loaded as Forest config, but you are not required to put your smart fields' declaration there. As long as your declaration is loaded into your app alongside Forest's initialization, it should be picked up.\r\n\r\nIf you want to still keep logic specific to Forest in its dedicated folder, you could add said folder to be ignored in your `babelrc` file.\r\n\r\nAs far as having it configurable, that's something we'll have to look into but could definitely be implemented."}}
{"actor":{"display_login":"VinzGhyz"}}