-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdarwinconf.lua
More file actions
30 lines (22 loc) · 877 Bytes
/
darwinconf.lua
File metadata and controls
30 lines (22 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
darwin.add_recipe({
name="lua WebDriver file",
description="Generate a single lua file for WebDriver",
outs={"release/luaWebDriver.lua"},
callback= function ()
local heregitage = darwin.dtw.load_file("dependencies/herigitage.lua")
local all = {
[[return (function()]]
}
all[#all + 1] = darwin.dtw.load_file("objects.lua") .. "\n"
all[#all + 1] = "local Heregitage = (function() "..heregitage .. " end\n)()\n"
local files = darwin.dtw.list_files_recursively("src",true)
for _, file in ipairs(files) do
all[#all +1 ] = darwin.dtw.load_file(file) .."\n"
end
all[#all + 1] = [[
return WebDriver;
end)()]]
local result = table.concat(all, "\n")
darwin.dtw.write_file("release/luaWebDriver.lua", result)
end
})