forked from rojo-rbx/rojo
* Switch git submodules to Wally packages * Update build snapshot * Add wally to foreman and use latest versions * Install packages in CI runners * Fix indents * Install packages in the correct directory * Install packages in correct dir of release action too * Remove submodules from ci checkout * Remove submodules from release checkout * Update selene with latest fix * Fix whitespace Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
33 lines
677 B
Lua
33 lines
677 B
Lua
if not plugin then
|
|
return
|
|
end
|
|
|
|
local Rojo = script:FindFirstAncestor("Rojo")
|
|
local Packages = Rojo.Packages
|
|
|
|
local Log = require(Packages.Log)
|
|
local Roact = require(Packages.Roact)
|
|
|
|
local DevSettings = require(script.DevSettings)
|
|
local Config = require(script.Config)
|
|
local App = require(script.App)
|
|
|
|
Log.setLogLevelThunk(function()
|
|
return DevSettings:getLogLevel()
|
|
end)
|
|
|
|
local app = Roact.createElement(App, {
|
|
plugin = plugin
|
|
})
|
|
local tree = Roact.mount(app, game:GetService("CoreGui"), "Rojo UI")
|
|
|
|
plugin.Unloading:Connect(function()
|
|
Roact.unmount(tree)
|
|
end)
|
|
|
|
if Config.isDevBuild then
|
|
local TestEZ = require(script.Parent.TestEZ)
|
|
|
|
require(script.runTests)(TestEZ)
|
|
end
|