mirror of
https://github.com/pesde-pkg/scripts.git
synced 2024-12-12 07:00:35 +00:00
feat: 🎉 initial commit
This commit is contained in:
commit
861e7fec54
2 changed files with 31 additions and 0 deletions
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# pesde scripts
|
||||
|
||||
This repository hosts scripts & utilities for [pesde](https://github.com/daimond113/pesde)
|
28
lune/rojo/roblox_sync_config_generator.luau
Normal file
28
lune/rojo/roblox_sync_config_generator.luau
Normal file
|
@ -0,0 +1,28 @@
|
|||
local process = require("@lune/process")
|
||||
local fs = require("@lune/fs")
|
||||
local serde = require("@lune/serde")
|
||||
|
||||
local package_directory = process.cwd
|
||||
|
||||
local output = {
|
||||
tree = {},
|
||||
}
|
||||
|
||||
for _, file in process.args do
|
||||
local name = string.gsub(file, ".luau?$", "")
|
||||
|
||||
if name == "init" then
|
||||
output["$path"] = file
|
||||
continue
|
||||
end
|
||||
|
||||
output.tree[name] = {
|
||||
["$path"] = file,
|
||||
}
|
||||
end
|
||||
|
||||
if not output["$path"] then
|
||||
output["$className"] = "Folder"
|
||||
end
|
||||
|
||||
fs.writeFile(package_directory .. "/default.project.json", serde.encode("json", output, true))
|
Loading…
Reference in a new issue