aboutsummaryrefslogtreecommitdiffstats
path: root/Tupfile
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-10-08 11:24:24 +0000
committers-ol <s-ol@users.noreply.github.com>2019-10-08 11:24:24 +0000
commitd63e8f54a87076cfbd3cb458c3e2128f46a9038d (patch)
tree499c377a9e367b3f3e6746e1354be12bc14156ef /Tupfile
parentlayout fixes: (diff)
downloadmmm-d63e8f54a87076cfbd3cb458c3e2128f46a9038d.tar.gz
mmm-d63e8f54a87076cfbd3cb458c3e2128f46a9038d.zip
serve static assets from as ?...
Diffstat (limited to 'Tupfile')
-rw-r--r--Tupfile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Tupfile b/Tupfile
index edb8b62..4c8ab29 100644
--- a/Tupfile
+++ b/Tupfile
@@ -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