Lemur reimplements a large portion of Roblox's API in Lua in order to enable Roblox projects to have continuous integration using services like Travis CI or Jenkins.
Lemur aims to be a fairly complete and up-to-date implementation of Roblox's API, however:
Current feature coverage is detailed in FEATURES.md
Lemur requires:
./?/init.lua
should be in your LUA_PATH
. This is the default in some, but not all, installations.luarocks install luafilesystem
)Lemur needs certain extra dependencies for some optional features:
luarocks install dkjson
)luarocks install luasocket
)luarocks install bit32
)Clone the Git repository wherever, then call require
on it.
To use Lemur, create a Habitat and load pieces of the filesystem into the tree:
local lemur = require("lemur")
-- Create a Habitat
local habitat = lemur.Habitat.new()
local ReplicatedStorage = habitat.game:GetService("ReplicatedStorage")
-- Load `src/roblox` as a Folder containing some ModuleScripts:
local root = habitat:loadFromFs("src/roblox")
root.Parent = ReplicatedStorage
-- Locate src/roblox/CoolModule.lua from inside the habitat and load it!
local CoolModule = habitat:require(root.CoolModule)
-- Invoke a method on our Roblox module!
CoolModule.doSomething()
If there are any APIs you'd like that are missing, feel free to open an issue on GitHub!
Lemur is available under the MIT license. See LICENSE.md for details.