aboutsummaryrefslogtreecommitdiffstats
path: root/Tupfile
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-09 13:14:56 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-09 13:14:56 +0000
commitfa977b6a5d6f6063479a97917810ef393c312e76 (patch)
treeb21984147c34293fe91e76eef13bfd969b3a7368 /Tupfile
parentadd $order mechanism (diff)
parentadd deploy script (diff)
downloadmmm-fa977b6a5d6f6063479a97917810ef393c312e76.tar.gz
mmm-fa977b6a5d6f6063479a97917810ef393c312e76.zip
Merge branch 'new-tup'
Diffstat (limited to 'Tupfile')
-rw-r--r--Tupfile39
1 files changed, 7 insertions, 32 deletions
diff --git a/Tupfile b/Tupfile
index 5eb254e..30ea402 100644
--- a/Tupfile
+++ b/Tupfile
@@ -1,40 +1,15 @@
-.gitignore
+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 -mauto %f %o |> | %o.map
# download fengari dependencies
-: |> !download |> dist/fengari-web.js
-: |> !download |> dist/fengari-web.js.map
-: static/* |> cp %f dist/ |> dist/%b
+: |> !download |> root/fengari-web.js
+: |> !download |> root/fengari-web.js.map
+: static/* |> cp %f root/ |> root/%b
# render stylesheet
-: scss/main.scss |> !sassc |> dist/main.css
+: scss/main.scss |> !sassc |> root/main.css
-# preload full mmmfs tree
-preload root
-preload root/articles
-preload root/articles/mmmfs
-preload root/articles/mmmfs/empty
-preload root/articles/mmmfs/image
-preload root/articles/mmmfs/markdown
-preload root/articles/realities
-preload root/animations
-preload root/animations/twisted
-preload root/animations/koch
-preload root/experiments
-preload root/experiments/center_of_mass
-preload root/experiments/tags
-preload root/meta
-preload root/meta/mmm.dom
-preload root/meta/test_mmm.component
-preload root/meta/todo
-
-# preload all of mmm
-preload mmm
-preload mmm/dom
-preload mmm/mmmfs
-preload mmm/component
-
-# render static content and compile sources
-run moon tup.moon
+# bundle for client loading
+: mmm/.bundle.lua | <modules> |> ^ WRAP %d^ moon bundle.moon %o --wrap %f |> root/mmm.bundle.lua