mirror of
https://github.com/0x5eal/terracotta.git
synced 2024-12-13 13:20:37 +00:00
25 lines
476 B
Lua
25 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"])
|