mirror of
https://github.com/0x5eal/terracotta.git
synced 2024-12-12 20:50:36 +00:00
26 lines
476 B
Lua
26 lines
476 B
Lua
|
local Fs = require("@lune/fs")
|
||
|
|
||
|
local Terracotta = require("..")
|
||
|
|
||
|
Terracotta.Build({
|
||
|
entryPoints = { "utils/fs.luau", "darklua/cmd.luau" },
|
||
|
bundle = true,
|
||
|
})
|
||
|
|
||
|
-- OR --
|
||
|
|
||
|
local terracotta = Terracotta.new()
|
||
|
|
||
|
local outputs = terracotta:Build({
|
||
|
entryPoints = { "utils/fs.luau", "darklua/cmd.luau" },
|
||
|
bundle = true,
|
||
|
rules = {
|
||
|
"remove_spaces",
|
||
|
"remove_comments",
|
||
|
"rename_variables",
|
||
|
"rename_variables",
|
||
|
},
|
||
|
})
|
||
|
|
||
|
Fs.writeFile("darklua.luau", outputs["darklua/cmd.luau"])
|