diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-08 07:16:35 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-08 07:16:35 +0000 |
| commit | f14faf29401cda74dfc8c21f8c2975ce26f03700 (patch) | |
| tree | 2b8dc84e8de7a5b1550c8dbcbe0984b331e0d644 /root/Tupdefault.lua | |
| parent | recursive tup stuff (diff) | |
| download | mmm-f14faf29401cda74dfc8c21f8c2975ce26f03700.tar.gz mmm-f14faf29401cda74dfc8c21f8c2975ce26f03700.zip | |
move tree into dist, recurive tup rendering etc.
Diffstat (limited to 'root/Tupdefault.lua')
| -rw-r--r-- | root/Tupdefault.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/root/Tupdefault.lua b/root/Tupdefault.lua index b6cf700..e4e433c 100644 --- a/root/Tupdefault.lua +++ b/root/Tupdefault.lua @@ -11,13 +11,20 @@ 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' +bundle = LUA_PATH .. ' moon ' .. root .. '/bundle_fileder.moon' +render = LUA_PATH .. ' moon ' .. root .. '/render.moon' facets += '<children>' facets += root .. '/<modules>' tup.rule( facets, - '^ BNDL %d^ ' .. exec .. ' %d ' .. inputs .. ' -- %<children>', + '^ BNDL %d^ ' .. bundle .. ' %d ' .. inputs .. ' -- %<children>', { '$bundle.lua', '../<children>' } ) + +tup.rule( + '$bundle.lua', + '^ HTML %d^ ' .. render .. ' ' .. root, + 'index.html' +) |
