local LUA_PATH = lua_path() bundle = LUA_PATH .. ' moon ' .. build .. '/bundle_fileder.moon' render = LUA_PATH .. ' moon ' .. build .. '/render_fileder.moon' -- @TODO: whish there was a better glob for this? facets = tup.glob '*$*' inputs = '' for i, file in ipairs(facets) do inputs = inputs .. " '" .. file .. "'" end facets += '' facets += root .. '/' tup.rule( facets, '^ BNDL %d^ ' .. bundle .. ' ' .. root .. ' %d ' .. inputs .. ' -- %', { '$bundle.lua', '../' } ) tup.rule( '$bundle.lua', '^ HTML %d^ ' .. render .. ' ' .. root, 'index.html' )