started new compiling platform in packager.lua

This commit is contained in:
Samkist
2022-06-03 01:34:50 -04:00
parent 275356fb9d
commit 5e3bc7b556
38 changed files with 143 additions and 131 deletions

19
scripts/compiler.lua Normal file
View File

@@ -0,0 +1,19 @@
lfs = require "lfs"
sourcesPath = "source/"
scriptsPath = "scripts/"
fetchFiles = function(...)
local tbl = {}
for _, directory in pairs{...} do
for file in lfs.dir(directory) do
if file ~= "." and file ~= ".." then
table.insert(tbl, file)
end
end
end
return tbl
end
local compiledSource = dofile(scriptsPath .. "packager.lua") -- path to packager