LPGhatguy / lemur

Partial implementation of Roblox API in Lua
MIT License
62 stars 25 forks source link

Implement Rojo-like folder-as-module support #72

Closed LPGhatguy closed 6 years ago

LPGhatguy commented 6 years ago

Lemur should support the same sort of file structures that Rojo does.

In Roact, I wrote code to do this in the benchmark and spec scripts, which seems non-ideal. Essentially every project I've started brings in that function or something equivalent to it.

Rojo is (currently) the standard tool for syncing code into Roblox from the filesystem, so lining up with its conventions makes sense. Rojo also happens to line up with how stock Lua loads folders as modules.

LPGhatguy commented 6 years ago

Closed by https://github.com/LPGhatguy/lemur/commit/74286fdacd7ba01024d18839371d6b8aa4b8ff96.

The optional loadFromFs option loadInitModules, which is enabled by default, controls this feature.