feat: 🎉 initial commit

This commit is contained in:
daimond113 2024-08-11 17:38:30 +02:00
commit 861e7fec54
Signed by untrusted user who does not match committer: DevComp
GPG key ID: 429EF1C337871656
2 changed files with 31 additions and 0 deletions

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# pesde scripts
This repository hosts scripts & utilities for [pesde](https://github.com/daimond113/pesde)

View 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))