diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-10-08 11:24:24 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-10-08 11:24:24 +0000 |
| commit | d63e8f54a87076cfbd3cb458c3e2128f46a9038d (patch) | |
| tree | 499c377a9e367b3f3e6746e1354be12bc14156ef /Tupfile | |
| parent | layout fixes: (diff) | |
| download | mmm-d63e8f54a87076cfbd3cb458c3e2128f46a9038d.tar.gz mmm-d63e8f54a87076cfbd3cb458c3e2128f46a9038d.zip | |
serve static assets from as ?...
Diffstat (limited to 'Tupfile')
| -rw-r--r-- | Tupfile | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -3,13 +3,15 @@ include_rules !download = |> ^ DOWNLOAD %O^ curl -L https://github.com/fengari-lua/fengari-web/releases/download/@(FENGARI_VERSION)/`basename %o` > %o |> !sassc = |> ^ SCSS %b^ sassc @(SASS_ARGS) %f %o |> | %o.map -# download fengari dependencies -: |> !download |> out/fengari-web.js -: |> !download |> out/fengari-web.js.map -: static/* |> cp %f out/ |> out/%b - # render stylesheet -: scss/main.scss |> !sassc |> out/main.css +: scss/main.scss |> !sassc |> static/main.css + +# download fengari dependencies +: |> !download |> static/fengari-web.js +: |> !download |> static/fengari-web.js.map # bundle for client loading -: mmm/.bundle.lua | <modules> |> ^ WRAP %d^ moon &(build)/bundle_module.moon %o --wrap %f |> out/mmm.bundle.lua +: mmm/.bundle.lua | <modules> |> ^ WRAP %d^ moon &(build)/bundle_module.moon %o --wrap %f |> static/mmm.bundle.lua + +# copy for static builds +: foreach static/* |> cp %f out/ |> out/%b |
