blob: b6cf700088374e68c4a544c72b1599c511d5b24f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
facets = tup.glob '*'
inputs = ''
for i, file in ipairs(facets) do
inputs = inputs .. " '" .. file .. "'"
end
LUA_PATH = {}
LUA_PATH += root .. '/?.lua'
LUA_PATH += root .. '/?.server.lua'
LUA_PATH += root .. '/?/init.lua'
LUA_PATH += root .. '/?/init.server.lua'
LUA_PATH = 'LUA_PATH="' .. table.concat(LUA_PATH, ';') .. '"'
exec = LUA_PATH .. ' moon ' .. root .. '/bundle_fileder.moon'
facets += '<children>'
facets += root .. '/<modules>'
tup.rule(
facets,
'^ BNDL %d^ ' .. exec .. ' %d ' .. inputs .. ' -- %<children>',
{ '$bundle.lua', '../<children>' }
)
|