blob: f3e300b7da22f0452f0b73c85845397f713f5207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 |> root/fengari-web.js
: |> !download |> root/fengari-web.js.map
: static/* |> cp %f root/ |> root/%b
# render stylesheet
: scss/main.scss |> !sassc |> root/main.css
# bundle for client loading
: mmm/.bundle.lua | <modules> |> ^ WRAP %d^ moon &(build)/bundle_module.moon %o --wrap %f |> root/mmm.bundle.lua
|